Commit db552616be95430d535b20b05b5427a7e6325aef
1 parent
6048802d
Add switch for building a shared or static library
Showing
1 changed file
with
1 additions
and
1 deletions
library.cmake
@@ -12,7 +12,7 @@ if (${PROJECT_NAME}_CURRENT_BINARY_DIR) | @@ -12,7 +12,7 @@ if (${PROJECT_NAME}_CURRENT_BINARY_DIR) | ||
12 | endif() | 12 | endif() |
13 | message(STATUS "CURRENT_PROJECT_BINARY_DIR : ${CURRENT_PROJECT_BINARY_DIR}") | 13 | message(STATUS "CURRENT_PROJECT_BINARY_DIR : ${CURRENT_PROJECT_BINARY_DIR}") |
14 | 14 | ||
15 | -if(DEFINED ${BUILD_STATIC}) | 15 | +if( ${BUILD_STATIC} ) |
16 | if(${BUILD_STATIC} STREQUAL "ON") | 16 | if(${BUILD_STATIC} STREQUAL "ON") |
17 | set(SHARED_OR_STATIC "STATIC") | 17 | set(SHARED_OR_STATIC "STATIC") |
18 | else() | 18 | else() |