Skip to content

Commit

Permalink
link CascLib statically on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Talv committed Nov 11, 2019
1 parent 943134a commit a3a694b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ if (NOT EXISTS "${STORMEX_SOURCE_DIR}/CascLib/CMakeLists.txt")
message(FATAL_ERROR "Missing dependency: CascLib")
endif()

if(WIN32)
set(CASC_BUILD_STATIC_LIB ON CACHE BOOL "Force Static library building to link test app")
set(CASC_BUILD_SHARED_LIB OFF CACHE BOOL "Compile dynamically linked library")
endif()
set(CASC_BUILD_STATIC_LIB ON CACHE BOOL "Force Static library building to link test app")
set(CASC_BUILD_SHARED_LIB OFF CACHE BOOL "Compile dynamically linked library")

add_subdirectory(CascLib)
add_subdirectory(plog)
Expand Down Expand Up @@ -77,11 +75,7 @@ include_directories("${STORMEX_SOURCE_DIR}/include/"
"${STORMEX_SOURCE_DIR}/plog/include/"
)

if(WIN32)
target_link_libraries(stormex casc_static)
else()
target_link_libraries(stormex casc)
endif()
target_link_libraries(stormex casc_static)

# Set the RPATH
if (APPLE)
Expand Down

0 comments on commit a3a694b

Please sign in to comment.