[CMake] exporting and using an exported package in the same project
Hi, I am trying to use a third party library (https://github.com/zaphoyd/websocketpp) It exports a Config.cmake file when building , but I want to use it from my workspace in which I cloned it . I tried using find_package(websocketpp CONFIG), but cmake replies websocketpp_DIR not found. The question is: can I use an exported package from the workspace exporting it ? Regards, S.Ancelot -- Powered by kitware.com/cmake Kitware offers various services to support the CMake community. For more information on each offering, please visit https://cmake.org/services Visit other Kitware open-source projects at https://www.kitware.com/platforms Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake This mailing list is deprecated in favor of https://discourse.cmake.org
[CMake] msys2-mingw64 cmake gives undefined behaviour, can not find include header
Hi, Migrating a code to msys2 compilation (cmake inside msys ), it does not find an include file for unknwon reason. the file is located in a project defined as follow: cmake_minimum_required(VERSION 3.10) project(include_commun) add_library(include_commun INTERFACE) target_include_directories(include_commun INTERFACE .) and the project causing error : cmake_minimum_required(VERSION 3.10) project(import_export_unix) add_library(import_export_unix STATIC import_export_unix.h import_export_unix.cpp) set_target_properties(import_export_unix PROPERTIES POSITION_INDEPENDENT_CODE TRUE) target_include_directories(import_export_unix PUBLIC .) target_link_libraries(import_export_unix PRIVATE include_machine include_commun) error displayed : [ 3%] Building CXX object IMPORT_EXPORT_UNIX/CMakeFiles/import_export_unix.dir/import_export_unix.cpp.obj cd /e/WORKSPACE/BASE_SILFAX_SAFETY/build/IMPORT_EXPORT_UNIX && /mingw64/bin/c++.exe @CMakeFiles/import_export_unix.dir/includes_CXX.rsp -o CMakeFiles/import_export_unix.dir/import_export_unix.cpp.obj -c /e/WORKSPACE/BASE_SILFAX_SAFETY/IMPORT_EXPORT_UNIX/import_export_unix.cpp E:/WORKSPACE/BASE_SILFAX_SAFETY/IMPORT_EXPORT_UNIX/import_export_unix.cpp:19:10: fatal error: defprog.h: No such file or directory CMakeFiles/import_export_unix.dir/includes_CXX.rsp content : -I/e/WORKSPACE/BASE_SILFAX_SAFETY/IMPORT_EXPORT_UNIX/. -I/e/WORKSPACE/BASE_SILFAX_SAFETY/INCLUDE_MACHINE/. -I/e/WORKSPACE/BASE_SILFAX_SAFETY/INCLUDE_COMMUN/. Regards, Steph -- Powered by kitware.com/cmake Kitware offers various services to support the CMake community. For more information on each offering, please visit https://cmake.org/services Visit other Kitware open-source projects at https://www.kitware.com/platforms Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake This mailing list is deprecated in favor of https://discourse.cmake.org
[CMake] modifying cmake_build_type cflags per target
Hi, I have a particular target (using swig / jni) that must not have -O3 -NDEBUG flags from Relase build type How can I overload this target flags ? Regards, S.Ancelot -- Powered by kitware.com/cmake Kitware offers various services to support the CMake community. For more information on each offering, please visit https://cmake.org/services Visit other Kitware open-source projects at https://www.kitware.com/platforms Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake This mailing list is deprecated in favor of https://discourse.cmake.org
[CMake] finding cdk
Hi, I have got some problems finding cdk lib in my debian system I used find_library without success libcdk can be found in /usr/lib/x86_64-linux-gnu/ and cdk in include system path cdk/cdk.h Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] toolchain file - cross-compiling windows-amd64->windows-x86
Hi, That first depends on which compiler you will use ? Regards, S.Ancelot Le 16/09/2019 à 22:32, Joao Pedro Abreu De Souza a écrit : Hi guys. I am trying to generate,using cmake, a executable with target Windows 32 bits using Windows 64 bits, but cannot find a standard toolchain file (I find to Linux, to Android, but can't find to Windows 32 bits) to build. Do you know some repository of toolchain files that has Windows 32 bits from Windows 64 bits? Or maybe someone has a standard toolchain file to this type of thing. Thanks in advance. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] can not import target external lib before being build
Hi, I am using this cmake snippet in order to build an external library # -- QGLViewer -- set(QGLVIEWER_FILES ${CMAKE_BINARY_DIR}/libQGLViewer-2.7.1/QGLViewer/qglviewer.h) get_target_property (QT_QMAKE_EXECUTABLE Qt5::qmake IMPORTED_LOCATION) add_custom_command(OUTPUT ${QGLVIEWER_FILES} COMMAND tar xzf "${CMAKE_CURRENT_SOURCE_DIR}/libQGLViewer-2.7.1.tar.gz" --strip 1 COMMAND ${QT_QMAKE_EXECUTABLE} -o QMakefile COMMAND make -f QMakefile # COMMAND ${CMAKE_COMMAND} -E touch ${LIBFOO_TAR_HEADERS} WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/libQGLViewer-2.7.1" DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/libQGLViewer-2.7.1.tar.gz" COMMENT "Unpacking libQGLViewer-2.7.1.tar.gz" VERBATIM ) add_custom_target(qglviewer_untar DEPENDS ${QGLVIEWER_FILES}) add_library(qglviewer SHARED IMPORTED) add_dependencies(qglviewer qglviewer_untar) # link qglviewer set_target_properties(qglviewer PROPERTIES IMPORTED_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/libQGLViewer-2.7.1/QGLViewer/libQGLViewer-qt5.so" INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_CURRENT_BINARY_DIR}/libQGLViewer-2.7.1") Unfortunately, cmake replies with the next error when configuring : CMake Error in API_COLLISION/CMakeLists.txt: Imported target "qglviewer" includes non-existent path "/tmp/OK/BASE_SILFAX_SAFETY/build/API_COLLISION/libQGLViewer-2.7.1" in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include: * The path was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and references files it does not provide. CMake Error in API_COLLISION/CMakeLists.txt: Imported target "qglviewer" includes non-existent path "/tmp/OK/BASE_SILFAX_SAFETY/build/API_COLLISION/libQGLViewer-2.7.1" in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include: * The path was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and references files it does not provide. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] Finding custom qmake path
I solved it using |get_target_property (QT_QMAKE_EXECUTABLE Qt5::qmake IMPORTED_LOCATION)| Le 03/09/2019 à 15:05, Stéphane Ancelot a écrit : Hi, Is there a way to find qmake path of a custom setup in order using it an add_custom_command my QT5 path is available in CMAKE_PREFIX_PATH. Regards,, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] Finding custom qmake path
Hi, Is there a way to find qmake path of a custom setup in order using it an add_custom_command my QT5 path is available in CMAKE_PREFIX_PATH. Regards,, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] using fetch_content imported modules and not system one
hi, i used fetch_content to download bullet library , but I cant use it. FetchContent_Declare( bullet GIT_REPOSITORY https://github.com/bulletphysics/bullet3.git GIT_TAG 2.88 ) FetchContent_GetProperties(bullet) if(NOT bullet_POPULATED) FetchContent_Populate(bullet) add_subdirectory(${bullet_SOURCE_DIR} ${bullet_BINARY_DIR}) endif() linking using bullet does not permit to find any include or lib file -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] find_path / find_package hardcoded path
Hi, using mingw32 with win10 , I can not manage to find jpeg libs . I tried setting JPEG_DIR, it fails. it also fails setting CMAKE_FIND_ROOT_PATH set(JPEG_DIR c:\\work\\WIN32DEPS\\jpegfolder) find_path(JPEG_INCLUDE_DIR jpeglib.h) fails find_package(JPEG ) fails what is the right way to specify the hardcoded path ? Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] linking FetchContent library
Hi, are there any specific Cmake configurations to setup in projects when using fetchcontent. I am able to fetch and build a library but not able to link and include files of this library in another projects. include(FetchContent) FetchContent_Declare( jconcpp GIT_REPOSITORY https://github.com/joncol/jcon-cpp.git ) FetchContent_Populate(jconcpp) add_subdirectory(${jconcpp_SOURCE_DIR} ${jconcpp_BINARY_DIR}) Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] cmake with vscode
Hi, I have got some problems finding packages under windows platform. I made a toolchain for VSCode and cmake 3.13 , but I don't understand why it fails to find almost all of my packages dependencies It is not able to find packages in the CMAKE_FIND_ROOT_PATH itself. If I try setting xx_LIBRARY and xx_INCLUDE_DIRS, if finds libs, but this does not sound the right Way . Here is my toolchain : # the name of the target operating system SET(CMAKE_SYSTEM_NAME Windows) message(STATUS "bin dir ${CMAKE_BINARY_DIR}") # here is the target environment located SET(CMAKE_FIND_ROOT_PATH ${CMAKE_BINARY_DIR}\\WIN32DEPS\\xerces\\xerces-c-3.1.1-bin ${CMAKE_BINARY_DIR}\\WIN32DEPS\\JPEGLIB\\jpegsrc-9c ${CMAKE_BINARY_DIR}\\WIN32DEPS\\zlib-1.2.3-lib ${CMAKE_BINARY_DIR}\\WIN32DEPS\\libpng-1.2.37-lib ${CMAKE_BINARY_DIR}\\WIN32DEPS\\ftgl-binary ${CMAKE_BINARY_DIR}\\WIN32DEPS\\freetype-dev_2.4.2-1 ${CMAKE_BINARY_DIR}\\WIN32DEPS\\iconv-1.9.2.1 ${CMAKE_BINARY_DIR}\\WIN32DEPS\\Python26 E:\\Qt\\5.9.5 ) # cmake 3.13 set(FREETYPE_LIBRARY E:\\freetype-windows-binaries-master\\lib) set(FREETYPE_INCLUDE_DIRS E:\\freetype-windows-binaries-master\\include) set(FTGL_LIBRARY ${CMAKE_BINARY_DIR}\\WIN32DEPS\\ftgl-binary\\lib) set(FTGL_INCLUDE_DIRS ${CMAKE_BINARY_DIR}\\WIN32DEPS\\ftgl-binary\\include) -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] linked dependencies in exported cmake package
Hi, I made an exported package for a library that needs linking qt5. find_package() works to find my library , however, I don't know how to handle the linking of external libs needed by this package. I suppose that must be managed inside the exported package, by which way ? Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] cmake 3.12 - python libs / 32 / 64 bits
I agree. That was a debug snippet...but is wrong ... I setted up again the toolchain, but does not help. So, I know where are include_dirs and libs for 32 bits cross compiling, I have to hardcode it like this ? add_library(python SHARED IMPORTED) set_target_properties( python PROPERTIES IMPORTED_LOCATION /usr/lib32/libpython2.6.so ) target_include_directories(python SYSTEM ... Le 14/11/2018 à 17:53, Marc CHEVRIER a écrit : The way you proceed is wrong. The system configuration is determined during the 'project' function call. Setting information after this call is useless. So, in your example, on a 64bit system, the compilation configuration will be 64bit (variable CMAKE_SIZEOF_VOID_P has value 8). This explain why 'FIND_LIBRARY_USE_LIB32_PATHS' has no effect. This property is taken in consideration only on 32bit systems. Moreover, I am not sure that modifying variable 'CMAKE_SYSTEM_PROCESSOR' is a valid action. To configure a 32bit compilation environment, two possibilities: * using environment variables: env CFLAGS=-m32 CXXFLAGS=-m32 cmake ... * using a toolchain file: see https://cmake.org/cmake/help/v3.13/manual/cmake-toolchains.7.html Le mer. 14 nov. 2018 à 14:06, Stéphane Ancelot mailto:sance...@numalliance.com>> a écrit : Hi, My system is 64 bits but I can cross compile python c modules for 32 bits . Unfortunately I don't manage to retrieve python 32 libs , always the 64 bits version is found. here is what I tried : cmake_minimum_required(VERSION 3.10) project(py_autom) set(CMAKE_SYSTEM_PROCESSOR "i686") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" CACHE STRING "c++ flags") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32" CACHE STRING "c flags") set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB32_PATHS TRUE) set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS FALSE) include_directories(python2.6) find_package(Python2 COMPONENTS Development) message(STATUS "python ${PYTHON_INCLUDE_DIRS} ${Python2_LIBRARIES_DIR} ${Python2_FOUND}") Regards Steph -- Powered by www.kitware.com <http://www.kitware.com> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] cmake 3.12 - python libs / 32 / 64 bits
Hi, My system is 64 bits but I can cross compile python c modules for 32 bits . Unfortunately I don't manage to retrieve python 32 libs , always the 64 bits version is found. here is what I tried : cmake_minimum_required(VERSION 3.10) project(py_autom) set(CMAKE_SYSTEM_PROCESSOR "i686") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32" CACHE STRING "c++ flags") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32" CACHE STRING "c flags") set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB32_PATHS TRUE) set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS FALSE) include_directories(python2.6) find_package(Python2 COMPONENTS Development) message(STATUS "python ${PYTHON_INCLUDE_DIRS} ${Python2_LIBRARIES_DIR} ${Python2_FOUND}") Regards Steph -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] java_home usage
Le 22/10/2018 à 11:19, Marc CHEVRIER a écrit : Variable must be specified using upper case. So 'set (JAVA_HOME ...)' should be OK (or environment variable JAVA_HOME is OK as well). javac is expected to be in $JAVA_HOME/bin. Yes, It is : set(JAVA_HOME /usr/lib/jvm/jdk1.6.0_45) Le lun. 22 oct. 2018 à 10:16, Stéphane Ancelot mailto:sance...@numalliance.com>> a écrit : Hi, If I set java_home in cmake 3.12 , Java_JAVAC_EXECUTABLE is not using my java_home env but /usr/bin/javac what is wrong ? Regards, S.Ancelot -- Powered by www.kitware.com <http://www.kitware.com> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] Howot add jar files in final jar file
Hi, I have to package some jar files in the final jar. I can compile it with add_jar specifying INCLUDE_JARS but unfortunately, they are not added to the final target jarfile Regards S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] java_home usage
Hi, If I set java_home in cmake 3.12 , Java_JAVAC_EXECUTABLE is not using my java_home env but /usr/bin/javac what is wrong ? Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] CMake Cookbook is out!!
Hi, Noisy, Unfortunately, at this time, there is only a table of contents . Regards, S.Ancelot Le 27/09/2018 à 20:26, Eric Noulard a écrit : Hi CMakers, Hi try not do that too often but here comes a little promotion for a book which (I think) deserve attention. The CMake Cookbook by Radovan Bast, Roberto Di Remigio https://www.packtpub.com/application-development/cmake-cookbook I'm not the author but I participate in the book review and I think the authors did a great job and the book contains a lot of good stuff for CMake users. There is companion github project: https://github.com/dev-cafe/cmake-cookbook/ which contains all the recipes of example of code used in the book. All the recipes are tested to various CI in order to ensure they work as expected. Happy building for everyone. -- Eric -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] overriding -03 -DNDEBUG Release flags
Hi, In one project I need to compile with -O2 option , how to set it and remove -O3 -DNDEBUG flags for this project ? Regards, Steph -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] Happy Birthday CMake!
Congratulations. Really a great work. Le 31/08/2018 à 20:33, Bill Hoffman a écrit : http://public.kitware.com/pipermail/insight-developers/2000-August/024248.html Thanks to everyone that has contributed or used CMake! -Bill -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] creating a library from other one
Le 31/08/2018 à 16:31, Eric Noulard a écrit : Le ven. 31 août 2018 à 15:59, Stéphane Ancelot mailto:sance...@numalliance.com>> a écrit : I ended with : add_custom_target(combined ALL COMMAND ${CMAKE_AR} rc libcombined.a $ $) Quick & dirty :-) There is the "thin" option of ar as well: https://stackoverflow.com/questions/3821916/how-to-merge-two-ar-static-libraries-into-one if you know the content of lib1 and lib2 don't have name clash. However libcombined.a is not a proper library target for CMake now. And by the way does this work on Window too ? Or may be you don't care ? This is on linux and i will take care of windows too. -- Eric -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] creating a library from other one
I ended with : add_custom_target(combined ALL COMMAND ${CMAKE_AR} rc libcombined.a $ $) Le 31/08/2018 à 15:24, Eric Noulard a écrit : First create OBJECT libraries instead of static Then create as many STATIC libraries as you want that includes as many OBJECT libraries content as you want. Le ven. 31 août 2018 à 15:17, Stéphane Ancelot mailto:sance...@numalliance.com>> a écrit : Hi, I have got some static libraries generated, that I would like to put in a common one. how can I proceed ? Regards, S.Ancelot -- Powered by www.kitware.com <http://www.kitware.com> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake -- Eric -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] creating a library from other one
Hi, I have got some static libraries generated, that I would like to put in a common one. how can I proceed ? Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] cmake - node-gyp
Hi, I am trying to migrate an existing Makefile to cmake that is using node-gyp. I have had a binding.gyp file that would need being generated with the libraries paths aqnd include paths. The problem is that I don't know how to do this. The final binding.gyp file should look as follow : # flags # https://gyp.gsrc.io/docs/UserDocumentation.md { "targets": [ { "target_name": "control", "sources": [ "./control.cpp","./control_wrap.cpp" ], 'defines': [ 'SWIG', '_GNU_SOURCE', '_REENTRANT', '__COBALT__' ], 'libraries': [ '../../IMPORT_EXPORT_UNIX/linux64/import_export_unix.o', '../../mofilereader.0.1.2/linux64/libmofilereader.0.1.2.a', '../../MODULEDATA_UNIX/linux64/moduledata_unix.o', ' ../../EVENEMENTS_UNIX/linux64/evenements_unix.o' ], 'ldflags': ['-Wl,@/nfs/solaris/AFFAIRES_ECLIPSE/DEVELOPPEMENT/DEVELOPPEMENTS_RD/DEBIAN_64BITS/sancelot/KERNEL/TARGET/usr/xenomai-3.0-git/lib64/cobalt.wrappers -lalchemy -lcopperplate ', '-L/nfs/solaris/AFFAIRES_ECLIPSE/DEVELOPPEMENT/DEVELOPPEMENTS_RD/DEBIAN_64BITS/sancelot/KERNEL/TARGET/usr/xenomai-3.0-git/lib64', '-lcobalt', '-lpthread', '-lrt'], 'cflags!': [ '-fno-exceptions' ,'-fpermissive'], 'cflags_cc!': [ '-fno-exceptions' ,'-fpermissive'], 'include_dirs': [ '/nfs/solaris/AFFAIRES_ECLIPSE/DEVELOPPEMENT/DEVELOPPEMENTS_RD/DEBIAN_64BITS/sancelot/KERNEL/TARGET/usr/xenomai-3.0-git/include/cobalt', '/nfs/solaris/AFFAIRES_ECLIPSE/DEVELOPPEMENT/DEVELOPPEMENTS_RD/DEBIAN_64BITS/sancelot/KERNEL/TARGET/usr/xenomai-3.0-git/include', '../INCLUDE_MACHINE', '../INCLUDE_COMMUN', '../EVENEMENTS_UNIX', '../IMPORT_EXPORT_UNIX', '../MODULEDATA_UNIX', '../LIBDEFAUT', '/usr/include/python2.7' ], } ], } -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] cpp macro
Le 04/06/2018 à 10:16, Eric Noulard a écrit : Le lun. 4 juin 2018 à 09:59, Stéphane Ancelot mailto:sance...@numalliance.com>> a écrit : hi is there a mactro for cpp ? You mean a CMake variable which would contain the path to C preprocessor binary? I don't think so, at list no xxx__xxx variable seems to exists for that. Did you check "cmake --help-variable-list" ? May be you can ask the compiler to act a the C pre-processor? clang and gcc both accept the '-E' command line option to only run the preprocessor. I used ${CMAKE_C_COMPILER} -E otherwise you may probably call find_program(C_PREPROCESSOR NAMES cpp) In both cases I don't know how to discover that in a cross-platform way. Probably MSVC has another option for pre-processsing. Eric Regards, S.Ancelot -- Powered by www.kitware.com <http://www.kitware.com> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake -- Eric -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] cpp macro
hi is there a mactro for cpp ? Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] using ExternalProject_Add when cmake is launched
include(ExternalProject) ExternalProject_Add( WIN32DEPSV2 PREFIX ${CMAKE_CURRENT_BINARY_DIR}/WIN32DEPSV2 DOWNLOAD_DIR . STAMP_DIR ./stamps SOURCE_DIR WIN32DEPSV2 GIT_REPOSITORY g...@numagit.numalliance.com:THIRD_PARTIES/WIN32DEPS.git CONFIGURE_COMMAND "" BUILD_COMMAND "" BUILD_IN_SOURCE 1 INSTALL_COMMAND "" ) add_library(your_other_target ...) add_dependencies(your_other_target WIN32DEPSV2) find_package(Freetype REQUIRED QUIET) Launching cmake does not clone the git folder , but continues and fails with the find_package command CMake Error at /usr/local/cmake-3.10.3-Linux-x86_64/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS) Call Stack (most recent call first): /usr/local/cmake-3.10.3-Linux-x86_64/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /usr/local/cmake-3.10.3-Linux-x86_64/share/cmake-3.10/Modules/FindFreetype.cmake:157 (find_package_handle_standard_args) FOX64/CMakeLists.txt:919 (find_package) Le 02/05/2018 à 09:32, Kai Wolf a écrit : You probably need to manually add a dependency from your ExternalProject to your target that needs the libraries. For instance ExternalProject_Add(fetch_win32_libs ...) add_library(your_other_target ...) Greetings Kai Wolf http://kai-wolf.me/ kai.w...@gmail.com <mailto:kai.w...@gmail.com> 2018-05-02 8:47 GMT+02:00 Stéphane Ancelot <sance...@numalliance.com <mailto:sance...@numalliance.com>>: Hi, I have got some win32 libraries dependencies stored in a project . Then I added ExternalProject_Add at beginning of my cmakelists file in order to clone this dependency to be available. and then provide the root path as follow: SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc ${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/JPEGLIB/jpegsrc-9c ${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/zlib-1.2.3-lib ${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/libpng-1.2.37-lib ${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/ftgl-binary ${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/freetype-dev_2.4.2-1 ${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/iconv-1.9.2.1 ) unfortunately, the project is not cloned when cmake is launched and the next dependencies don't find the packages :-( What Can I do ? Regards, S.Ancelot -- Powered by www.kitware.com <http://www.kitware.com> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ <http://www.cmake.org/Wiki/CMake_FAQ> Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html <http://cmake.org/cmake/help/support.html> CMake Consulting: http://cmake.org/cmake/help/consulting.html <http://cmake.org/cmake/help/consulting.html> CMake Training Courses: http://cmake.org/cmake/help/training.html <http://cmake.org/cmake/help/training.html> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html <http://www.kitware.com/opensource/opensource.html> Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake <https://cmake.org/mailman/listinfo/cmake> -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] using ExternalProject_Add when cmake is launched
Hi, I have got some win32 libraries dependencies stored in a project . Then I added ExternalProject_Add at beginning of my cmakelists file in order to clone this dependency to be available. and then provide the root path as follow: SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc ${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/JPEGLIB/jpegsrc-9c ${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/zlib-1.2.3-lib ${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/libpng-1.2.37-lib ${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/ftgl-binary ${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/freetype-dev_2.4.2-1 ${CMAKE_CURRENT_SOURCE_DIR}/WIN32DEPS/iconv-1.9.2.1 ) unfortunately, the project is not cloned when cmake is launched and the next dependencies don't find the packages :-( What Can I do ? Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] swig module add -fPIC flag
Hi, I have not found how to add -fPIC link flag to a SWIG module. Regards S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] adding cmake managed external projects with their config
Le 23/03/2018 à 17:18, Stéphane Ancelot a écrit : Hi, I have an experimental Bullet package I would like to use, but I don't manage to override the system CMAKE_MODULE_PATH for bullet to use the new one. I tried using ExternalProject_Add (Bullet SOURCE_DIR "bullet3/build_cmake") but this does not seem the RIGHT way... Overriding CMAKE_MODULE_PATH does not work, since cmake at first uses it's own. logically, since I have 2 version of bullet in my system, I should be able to focus on only one requiring the right version in find_package, but that does not seem to work as expected ...or I certainly made something wrong Any idea ? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] adding cmake managed external projects with their config
Hi, I have an experimental Bullet package I would like to use, but I don't manage to override the system CMAKE_MODULE_PATH for bullet to use the new one. I tried using ExternalProject_Add (Bullet SOURCE_DIR "bullet3/build_cmake") but this does not seem the RIGHT way... Overriding CMAKE_MODULE_PATH does not work, since cmake at first uses it's own. Any idea ? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] toolchain
Hi, My project needs being compiled for different targets : win32 (linux mingw32) / linux64 (Opensuse 13.2) / linux32 (Ubuntu 10.04) using toolchain is the right option isn't it ??? some people told me it was deprecated ? Regards, S.Ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] using external library
Hi, I need some external libraries in my project (eg a particular version of qt..) These external projects have been cloned locally , I could use ExternalProject_Add to clone it in my project. My major problem is that I will compile it each time and this is time and disk usage consuming, for each users . I sounds to me better to have the compiled version available in my development system and use only header+binaries of this particular release. So, the scenario I would like to obtain : check if My Qt5 binaries are setted up in my system in a predefined directory (to not overlap with possible system one), if not setted up, then clone qt needed release and install it in my predefined system directory once (like /usr/local or a directory shared between users) . I hope you understood and it is enough clear Thanks Steph -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
Re: [CMake] recusively calling make install
found:that was because of a project that was not compiling Le 26/02/2018 à 09:52, Stéphane Ancelot a écrit : Hi, I have got a master CMake file that includes subprojects as follow : add_subdirectory(proj1) add_subdirectory(proj2) src+proj1 +proj2 The main problem is that I can run make install in each project directory, but not from the top CMake directory in src dir how to propagate install in each projects? Regards, S.ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
[CMake] recusively calling make install
Hi, I have got a master CMake file that includes subprojects as follow : add_subdirectory(proj1) add_subdirectory(proj2) src+proj1 +proj2 The main problem is that I can run make install in each project directory, but not from the top CMake directory in src dir how to propagate install in each projects? Regards, S.ancelot -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake