![]() Thanks in advance! add_library(MyLib some.cpp sources.cpp)ĭESTINATION $/func_export. turn a non-REQUIRED findpackage () call into a REQUIRED one. default value for the CMAKEBUILDTYPE variable. identification variables from the /etc/os-release file. Some of the more significant changes in CMake 3.22 are: settings match the compiler’s defaults. My problem is that MyLibTargetsDevelopment on windows when building a dll has no contents so the command install(EXPORT MyLibTargetsDevelopment complains that the export does not exist.ĭoes anyone know how to fix it without having to wrap stuff in IF (WIN32)? &0183 &32 CMake 3.22.0 available for download. The folder to add to the path may be C:Program FilesCMake. Note that this is not the root CMake application directory, but the directory that contains the CMake executable. My simplified code is below, it’s taken mostly from book. &0183 &32 On Mac, you may see the following error: Typically, as part of the CMake installation workflow, the CMake executable folder gets added to the PATH environment variable. I have to support CMake 3.2 so I can’t use NAMELINK_COMPONENT. I have a problem using install(TARGETS EXPORT and install(EXPORT.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |