Skip to content

Commit cbc1ff3

Browse files
committed
fix linking to libraries (touch #760)
1 parent dca5331 commit cbc1ff3

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ if(NOT CMAKE_BUILD_TYPE)
2424
set(CMAKE_BUILD_TYPE "Release")
2525
endif()
2626

27+
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
28+
2729
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
2830
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
2931
set(CMAKE_INSTALL_PREFIX "/usr/local")

cmake/modules/FindMinizip.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ FIND_LIBRARY(MINIZIP_LIBRARY NAMES ${MINIZIP_NAMES} )
1919
# handle the QUIETLY and REQUIRED arguments and set MINIZIP_FOUND to TRUE if
2020
# all listed variables are TRUE
2121
INCLUDE(FindPackageHandleStandardArgs)
22-
FIND_PACKAGE_HANDLE_STANDARD_ARGS(MiniZip DEFAULT_MSG MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR)
22+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Minizip DEFAULT_MSG MINIZIP_LIBRARY MINIZIP_INCLUDE_DIR)
2323

2424
IF(MINIZIP_FOUND)
2525
SET( MINIZIP_LIBRARIES ${MINIZIP_LIBRARY} )

colorer/CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ FIND_PACKAGE(XercesC REQUIRED)
3838

3939
target_include_directories(colorer
4040
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src/Colorer-library/src
41-
PUBLIC ${SPDLOG_INCLUDE_DIR}
42-
PUBLIC ${MINIZIP_INCLUDE_DIRS}
43-
PUBLIC ${XERCESC_INCLUDE_DIR}
41+
PUBLIC ${SPDLOG_INCLUDE_DIR}
42+
PUBLIC ${MINIZIP_INCLUDE_DIRS}
43+
PUBLIC ${XERCESC_INCLUDE_DIR}
4444
)
4545

46+
#${MINIZIP_LIBRARIES}
4647
target_link_libraries(colorer
47-
PUBLIC ${MINIZIP_LIBRARIES}
48-
PUBLIC ${XERCESC_LIBRARIES}
48+
${MINIZIP_LIBRARIES}
49+
${XERCESC_LIBRARIES}
4950
utils
5051
colorer_lib
5152
)

colorer/src/Colorer-library/src/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
project(colorer_lib VERSION ${COLORER_VERSION} LANGUAGES CXX C)
1+
project(colorer_lib)
22

33
#====================================================
44
# colorer
@@ -182,6 +182,8 @@ target_include_directories(colorer_lib
182182
)
183183

184184
target_link_libraries(colorer_lib
185+
PUBLIC ${MINIZIP_LIBRARIES}
186+
PUBLIC ${XERCESC_LIBRARIES}
185187
${THREAD_LIBS}
186188
)
187189

0 commit comments

Comments
 (0)