Skip to content

Commit

Permalink
fix USE_SYSTEM_LIBS
Browse files Browse the repository at this point in the history
  • Loading branch information
cen1 committed Feb 25, 2024
1 parent 5b6431a commit 4df4504
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ set(SOURCES
target_sources(bncsutil PRIVATE ${SOURCES} ${HEADERS})

if (WIN32)
set(USE_SYSTEM_LIBS 0)
option(USE_SYSTEM_LIBS "Use system libraries" OFF)
else()
set(USE_SYSTEM_LIBS 1)
option(USE_SYSTEM_LIBS "Use system libraries" ON)
endif()

if (CMAKE_GENERATOR_PLATFORM EQUAL "x86")
Expand Down Expand Up @@ -100,6 +100,8 @@ endif()
install(TARGETS bncsutil RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
install(FILES ${HEADERS} DESTINATION include/bncsutil)

message("${CMAKE_INCLUDE_PATH}")

#CPack configuration
SET(CPACK_GENERATOR "DEB" "RPM")
SET(CPACK_PACKAGE_NAME "bncsutil")
Expand Down

0 comments on commit 4df4504

Please sign in to comment.