[CMake] flags for shared/static lib
Totte Karlsson
totte at dunescientific.com
Tue Jun 12 18:39:43 EDT 2012
Hi,
I have a CMakeLists.txt that creates both a shared and static lib.
In short it looks something like this:
add_definitions(-DEXPORT_RR)
add_library(${target} SHARED ${rrSources})
add_library(${target}-static STATIC ${rrSources})
The problem being that for the static version, the flag
-DRR_STATIC should be defined.
How can one achieve that?
-totte
More information about the CMake
mailing list