Skip to content

Commit 4df4504

Browse files
committed
fix USE_SYSTEM_LIBS
1 parent 5b6431a commit 4df4504

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ set(SOURCES
4747
target_sources(bncsutil PRIVATE ${SOURCES} ${HEADERS})
4848

4949
if (WIN32)
50-
set(USE_SYSTEM_LIBS 0)
50+
option(USE_SYSTEM_LIBS "Use system libraries" OFF)
5151
else()
52-
set(USE_SYSTEM_LIBS 1)
52+
option(USE_SYSTEM_LIBS "Use system libraries" ON)
5353
endif()
5454

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

103+
message("${CMAKE_INCLUDE_PATH}")
104+
103105
#CPack configuration
104106
SET(CPACK_GENERATOR "DEB" "RPM")
105107
SET(CPACK_PACKAGE_NAME "bncsutil")

0 commit comments

Comments
 (0)