argtable / argtable3

A single-file, ANSI C, command-line parsing library that parses GNU-style command-line options.
http://www.argtable.org
Other
377 stars 65 forks source link

cmake find_package error #34

Closed fenglc closed 5 years ago

fenglc commented 5 years ago

clone and build argtable3

$ cd argtable3
$ cmake . -L -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=~/devlibs
$ make && make install

build test-argtable3.zip

$ cd test-argtable3
$ cmake . -L -DCMAKE_PREFIX_PATH=~/devlibs
CMake Error at CMakeLists.txt:5 (find_package):
  By not providing "FindArgtable3.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Argtable3", but CMake did not find one.

  Could not find a package configuration file provided by "Argtable3" with
  any of the following names:

    Argtable3Config.cmake
    argtable3-config.cmake

  Add the installation prefix of "Argtable3" to CMAKE_PREFIX_PATH or set
  "Argtable3_DIR" to a directory containing one of the above files.  If
  "Argtable3" provides a separate development package or SDK, be sure it has
  been installed.

-- Configuring incomplete, errors occurred!
See also "/home/xxx/test-argtable3/build/CMakeFiles/CMakeOutput.log".
-- Cache values
Argtable3_DIR:PATH=Argtable3_DIR-NOTFOUND
CMAKE_BUILD_TYPE:STRING=
CMAKE_INSTALL_PREFIX:PATH=/usr/local
fenglc commented 5 years ago
$ cmake --version
cmake version 3.7.2