Ver código fonte

fixing build

Stasik0 9 anos atrás
pai
commit
a3dac85c49
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      CMakeLists.txt

+ 1 - 2
CMakeLists.txt

@@ -148,8 +148,7 @@ if(CMAKE_BUILD_TYPE STREQUAL "MinSizeRel" OR CMAKE_BUILD_TYPE STREQUAL "Release"
     add_library(open62541-object OBJECT ${PROJECT_BINARY_DIR}/open62541.c)
     add_library(open62541 SHARED $<TARGET_OBJECTS:open62541-object>)
 else()
-    ##compile from individual c files
-    add_library(open62541-object OBJECT ${lib_sources})
+    add_library(open62541-object OBJECT ${lib_sources} ${internal_headers} ${exported_headers})
     include_directories(${PROJECT_SOURCE_DIR}/include)
     include_directories(${PROJECT_SOURCE_DIR}/deps)
     include_directories(${PROJECT_SOURCE_DIR}/src)