Skip to content

Commit

Permalink
Restrict CMake to static libraries when compiling static binary
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanoKobalamyne committed Sep 14, 2024
1 parent 51e5030 commit 8d69e77
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ else()
set(SHARED_LIB_EXT "so")
endif()

if("${PONO_STATIC_EXEC}" STREQUAL "YES")
if(WIN32)
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a)
else()
set(CMAKE_FIND_LIBRARY_SUFFIXES .a)
endif()
endif()

if (WITH_BOOLECTOR)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DWITH_BOOLECTOR")
endif()
Expand Down

0 comments on commit 8d69e77

Please sign in to comment.