|
@@ -27,7 +27,7 @@ set(GOOGLE_TEST_MODULE googletest-1.11.0)
|
|
|
# Options
|
|
|
##########################################################
|
|
|
|
|
|
-option(LS_STD_BUILD_WITH_TESTS "Build project with tests..." ON)
|
|
|
+option(LS_STD_BUILD_WITH_TESTS "Build project with tests..." OFF)
|
|
|
option(LS_STD_BUILD_WITH_SUPPORTED_COMPILER "Build project with supported compiler only..." ON)
|
|
|
option(LS_STD_BUILD_STATIC "Build ls_std static library..." ON)
|
|
|
option(LS_STD_BUILD_SHARED "Build ls_std shared library..." OFF)
|
|
@@ -80,7 +80,9 @@ if(${LS_STD_BUILD_WITH_SUPPORTED_COMPILER})
|
|
|
|
|
|
# define supported compilers
|
|
|
|
|
|
- if (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC OR ${CMAKE_CXX_COMPILER_ID} STREQUAL GNU)
|
|
|
+ if (${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC OR
|
|
|
+ ${CMAKE_CXX_COMPILER_ID} STREQUAL GNU OR
|
|
|
+ ${CMAKE_CXX_COMPILER_ID} STREQUAL Clang)
|
|
|
message("${PROJECT_NAME}: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} is supported...")
|
|
|
else()
|
|
|
message("${PROJECT_NAME}: [Error] ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} is not supported... terminated!")
|