Skip to content

Commit

Permalink
cmake: add check for util lib
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Aug 18, 2022
1 parent c0be40d commit b31ac86
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Expand Up @@ -82,8 +82,11 @@ if(WIN32)
list(APPEND LINK_LIBS shell32 ws2_32)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/app.rc.in ${CMAKE_CURRENT_BINARY_DIR}/app.rc @ONLY)
list(APPEND SOURCE_FILES ${CMAKE_CURRENT_BINARY_DIR}/app.rc)
elseif(NOT APPLE)
list(APPEND LINK_LIBS util)
else()
find_library(LIBUTIL NAMES util)
if(LIBUTIL)
list(APPEND LINK_LIBS util)
endif()
endif()

add_executable(${PROJECT_NAME} ${SOURCE_FILES})
Expand Down

0 comments on commit b31ac86

Please sign in to comment.