![]() Before running cmake, I delete everything from the output directory. What is wrong Edit: There is no CMAKEINSTALLPREFIX in any of the CMakeLists.txt project files. Here is my CMakeLists.txt cmake_minimum_required(VERSION 3. CMakeCache.txt contains: CMAKEINSTALLPREFIX:PATH/usr (OK) Now I execute: make make install All files are still installed to usr/local. If 'InferenceEngine' provides a separate development package or SDK, be sure it has been installed. "DecompUtil" provides a separate development package or SDK, be sure it has Add the installation prefix of 'InferenceEngine' to CMAKEPREFIXPATH or set 'InferenceEngineDIR' to a directory containing one of the above files. For example, in the case of MinGW on Windows: set(CMAKEPREFIXPATH 'C:QtQt5.14.05.14. You can either pass it via -D in the CMake settings dialog or via the set command before findpackage. ![]() "DecompUtil_DIR" to a directory containing one of the above files. One of the ways to do this is by setting the CMAKEPREFIXPATH variable. In particular, we can change the value of CMAKEINSTALLPREFIX in several ways. ![]() "DecompUtil", but CMake did not find one.Ĭould not find a package configuration file provided by "DecompUtil" withĪdd the installation prefix of "DecompUtil" to CMAKE_PREFIX_PATH or set Set CMake Install Prefix The CMAKEINSTALLPREFIX (default /usr/local) parameter is a suffix of DESTDIR and a prefix for the install () DESTINATION path when the latter is relative. Has asked CMake to find a package configuration file provided by Or, when using the cmake (1) command-line tool's -install mode, one may specify a different prefix using the -prefix option: cmake -install. I kept on encountering this error: CMake Error at CMakeLists.txt:8 (find_package):Ä«y not providing "FindDecompUtil.cmake" in CMAKE_MODULE_PATH this project The CMAKEINSTALLPREFIX may be defined when configuring a build tree to set its installation prefix. As your given paths do not contain any strings like Sofa or SofaFramework I guess youâre providing the wrong directories to CMAKEPREFIXPATH. Again, execute the INSTALL target to create the directory. CMAKEPREFIXPATH should contain package base directories as you would specify for CMAKEINSTALLPREFIX when installing a package. I am trying to include this C++ package into my project, but I am not exactly sure how to do it in my CMakelists.txt. If you specified a custom install location for gtest with -DCMAKEINSTALLPREFIX at cmake at configure time (I usually do), look to see if the actual directory was created.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |