瀏覽代碼

Merge branch 'clang-support' of public/ls-standard-library into development

Lynar Studios - Public Repositories 1 年之前
父節點
當前提交
0dc0f79a82
共有 2 個文件被更改,包括 5 次插入2 次删除
  1. 4 2
      CMakeLists.txt
  2. 1 0
      README.md

+ 4 - 2
CMakeLists.txt

@@ -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!")

+ 1 - 0
README.md

@@ -40,6 +40,7 @@ A __Date__ class comes with this submodule, which you can use to represent a dat
 
 - this library is now being compiled with C++ 17 standard
 - this library can now build shared libraries by using MSVC
+- Clang support has been added to this library
 
 #### Improvements ####