Skip to content

Commit

Permalink
use OBJECT library type for Library-C++
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Apr 12, 2024
1 parent 11e1eb0 commit 47d28ff
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ endif()

if(WIN32)
add_library(Library-C++
STATIC
OBJECT
src/cluster.cpp
src/direct.cpp
src/direct_tree.cpp
Expand All @@ -66,6 +66,7 @@ if(WIN32)
)
else()
add_library(Library-C++
DYNAMIC
src/cluster.cpp
src/direct.cpp
src/direct_tree.cpp
Expand Down Expand Up @@ -149,11 +150,6 @@ if(WITH_TESTS)
set(GOOGLETEST_VERSION 1.10.0)
add_subdirectory("${PROJECT_SOURCE_DIR}/vendor/googletest-release-1.10.0/googletest")

set_target_properties(gtest PROPERTIES MACOSX_RPATH ON)
target_compile_options(gtest PUBLIC -std=c++11)
set_target_properties(gtest_main PROPERTIES MACOSX_RPATH ON)
target_compile_options(gtest_main PUBLIC -std=c++11)

add_subdirectory(test)
endif()

Expand Down

0 comments on commit 47d28ff

Please sign in to comment.