Cmake - npalko/npalko.github.com GitHub Wiki

${CMAKE_SHARED_LIBRARY_SUFFIX}

specifying optimized or debug libraries:

add_executable (foo foo.c) target_link_libraries (foo debug libdebug optimized libopt)

APPLE UNIX (inc. APPLE) WIN32 (includes 64 bit)

CMAKE_SHARED_LIBRARY_SUFFIX

CMAKE_REQUIRED_LIBRARIES

CMAKE_BUILD_TYPE Debug, Release, RelWithDebInfo and MinSizeRel

Scope of variables:

They don't propagate up to the parent directories. Also if the value of a variable is changed in a subdirectory, the change doesn't propagate up to the variable in the parent directory.