Use the cmake_policy command to set the policy and suppress this warning. Run "cmake -help-policy CMP0021" for policy details. CMake Warning (dev) in taglib/CMakeLists.txt: Policy CMP0021 is not set: Fatal error on relative paths in INCLUDE_DIRECTORIES target property. Found relative path while evaluating include directories of "tag": "Boost_INCLUDE_DIR-NOTFOUND" This warning is for project developers. Please set them or make sure they are set and tested correctly in the CMake files: Boost_INCLUDE_DIR used as include directory in directory /Users/jones/Documents/px4/VLCKit/libvlc/vlc/contrib/contrib-armv7-apple-iOS_9.0/taglib/taglib used as include directory in directory /Users/jones/Documents/px4/VLCKit/libvlc/vlc/contrib/contrib-armv7-apple-iOS_9.0/taglib/taglib used as include directory in directory /Users/jones/Documents/px4/VLCKit/libvlc/vlc/contrib/contrib-armv7-apple-iOS_9.0/taglib/taglib used as include directory in directory /Users/jones/Documents/px4/VLCKit/libvlc/vlc/contrib/contrib-armv7-apple-iOS_9.0/taglib/taglib used as include directory in directory /Users/jones/Documents/px4/VLCKit/libvlc/vlc/contrib/contrib-armv7-apple-iOS_9.0/taglib/taglib used as include directory in directory /Users/jones/Documents/px4/VLCKit/libvlc/vlc/contrib/contrib-armv7-apple-iOS_9.0/taglib/taglib CMake Warning (dev) in taglib/CMakeLists.txt: Policy CMP0021 is not set: Fatal error on relative paths in INCLUDE_DIRECTORIES target property. PS: I have also attached the CMakeOutput.CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Needing to set the ar? And if I need to set it is there a way to set in Is this the expected behavior? How can i set a custom compiler without SCOREP_WRAPPER=off cmake … -DCMAKE_C_COMPILER=scorep-gcc -DCMAKE_CXX_COMPILER=scorep-g++ -DCMAKE_C_COMPILER_AR=/usr/bin/gcc-ar-6 -DCMAKE_AR=/usr/bin/ar -DCMAKE_LINKER=/usr/bin/ld If I set the need toolchain via command line everything works. Set (CMAKE_C_COMPILER=/usr/local/apps/scorep/4.0/bin/scorep-gcc) The project command the compiler didn’t change at all. When trying to change the Compiler with set in the CMakeLists.txt before I also tried to set the compiler via environment variable with the same CMAKE_ADDR2LINE:FILEPATH=CMAKE_ADDR2LINE-NOTFOUNDĬMAKE_C_COMPILER_AR:FILEPATH=CMAKE_C_COMPILER_AR-NOTFOUNDĬMAKE_C_COMPILER_RANLIB:FILEPATH=CMAKE_C_COMPILER_RANLIB-NOTFOUNDĬMAKE_LINKER:FILEPATH=CMAKE_LINKER-NOTFOUNDĬMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUNDĬMAKE_STRIP:FILEPATH=CMAKE_STRIP-NOTFOUND However when calling cmake and setting the compiler via command line (as is described in their docu) the build fails.Ĭd /home/maxschro/kivibench/build-scorep/lib/DHT & /usr/local/apps/cmake/3.18.0/bin/cmake -P CMakeFiles/DHT.dir/cmake_clean_target.cmakeĬd /home/maxschro/kivibench/build-scorep/lib/DHT & /usr/local/apps/cmake/3.18.0/bin/cmake -E cmake_link_script CMakeFiles/DHT.dir/link.txt -verbose=1ĬMAKE_AR-NOTFOUND qc libDHT.a CMakeFiles/DHT.dir/DHT.c.oĮrror running link command: No such file or directoryĪfter enabling verbose logging I noticed that the compiler was found,īut none of the gcc and system toolchain. I’m trying to build my project with the scorep compiler wrapper for
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |