learning-cmake icon indicating copy to clipboard operation
learning-cmake copied to clipboard

learning cmake

Results 6 learning-cmake issues
Sort by recently updated
recently updated
newest added

你好!我在阅读cmake-practice的文档时,有关于编译出hello.so和hello.a的两个库的内容中,涉及到使用 `SET_TARGET_PROPERTIES(hello PROPERTIES CLEAN_DIRECT_OUTPUT 1) SET_TARGET_PROPERTIES(hello_static PROPERTIES CLEAN_DIRECT_OUTPUT 1)` 来防止库因同名而被删除的问题,但是个人(目前使用的cmake是3.10.2)经过一些尝试,在不使用以上语句的情况下也能成功编译出两个同名的库,有没有可能是版本更新后对此进行了优化导致的?或者请问我这样的尝试有什么不当之处吗?还请赐教 ```SET(LIBHELLO_SRC hello.c) ADD_LIBRARY(hello SHARED ${LIBHELLO_SRC}) #[[ SET_TARGET_PROPERTIES( hello PROPERTIES CLEAN_DIRECT_OUTPUT 1 ) ]] ADD_LIBRARY(hello_static STATIC ${LIBHELLO_SRC}) SET_TARGET_PROPERTIES( hello_static PROPERTIES OUTPUT_NAME...

set(CMAKE_MODULE_PATH ${**PROJECT**_SOURCE_DIR}/cmake) Please rectify the error in the file of config-file/CMakeLists.txt

“三、初试cmake”章节中,第6页最后"CmakeLists.txt文件内容:",这里的CmakeLists.txt应该是CMakeLists.txt

/backup/t1/CMakeLists.txt ``` PROJECT (HELLO) SET(SRC_LIST main.c) MESSAGE(STATUS "This is BINARY dir " ${HELLO_BINARY_DIR}) MESSAGE(STATUS "This is SOURCE dir "${HELLO_SOURCE_DIR}) ADD_EXECUTABLE(hello SRC_LIST) ``` line 1: space after PROJECT is unnessary. line...

Hi there, When I try the first example in `cmake-pratice`, page 6, `cmake` complains cannot find source files. ``` -- This is BINARY dir -- This is SOURCE dir --...

A error in line 3 in hello-module/cmake/FindHELLO.cmake. An s is missing after PATH.