浏览代码

Typo in cmake option: Trailing S missing in BUILD_SHARED_LIBS.

This typo introduced the following bug:
When building open62541 against mbedtls, the compiler options
for the C Runtime-Libraries mbedtls is built with do not match
the ones for open62541 anymore resulting in linker errors.
Daniel Feist 7 年之前
父节点
当前提交
fe6c11e775
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -300,7 +300,7 @@ endif()
 if(MSVC)
   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W3 /WX /w44996") # Compiler warnings, error on warning
 
-  if(NOT BUILD_SHARED_LIB)
+  if(NOT BUILD_SHARED_LIBS)
     set(CompilerFlags CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS
         CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE)
     foreach(CompilerFlag ${CompilerFlags})