Skip to content

Commit 5cda3c6

Browse files
committed
fix: LODESTONE_BUILD_SHARED_LIBS always true even when building statically
1 parent e4240b1 commit 5cda3c6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ if (NOT DEFINED BUILD_SHARED_LIBS)
1818
endif()
1919

2020
if(BUILD_SHARED_LIBS)
21-
add_compile_definitions(LODESTONE_BUILD_SHARED_LIBS=1)
22-
else()
23-
add_compile_definitions(LODESTONE_BUILD_SHARED_LIBS=0)
21+
add_compile_definitions(LODESTONE_BUILD_SHARED_LIBS)
2422
endif()
2523

2624
include(${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/linting.cmake)

0 commit comments

Comments
 (0)