diff --git a/CMakeLists.txt b/CMakeLists.txt index fcdd438..a59d4d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,12 +85,13 @@ message("Current Source: ${CMAKE_CURRENT_SOURCE_DIR}") add_library(${BLT_TARGET} ${STD_FILES} ${PROFILING_FILES} ${FS_FILES} ${PARSE_FILES}) +if(${ZLIB_FOUND}) + target_link_libraries(${BLT_TARGET} PUBLIC ZLIB::ZLIB) +endif() +target_link_libraries(${BLT_TARGET} PUBLIC stdc++fs) + target_include_directories(${BLT_TARGET} PUBLIC include/) target_include_directories(${BLT_TARGET} PUBLIC ${CMAKE_CURRENT_BINARY_DIR}/config/) -target_include_directories(${BLT_TARGET} PUBLIC stdc++fs) -if(${ZLIB_FOUND}) - target_link_libraries(${BLT_TARGET} PUBLIC ZLIB::ZLIB) -endif() if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/libraries/parallel-hashmap) message("Including phmap") target_include_directories(${BLT_TARGET} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/libraries/parallel-hashmap)