Skip to content

Commit

Permalink
cmake improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
pbosetti committed Jun 10, 2021
1 parent 3be612d commit eef8337
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,13 @@ endif()

include(FindThreads)
if(Threads_FOUND)
message(STATUS "Found Threads library, linking with "${CMAKE_THREAD_LIBS_INIT})
if("${CMAKE_THREAD_LIBS_INIT}" STREQUAL "")
message(STATUS "Threads library don't need link flag")
else()
message(STATUS "Found Threads library, linking with "${CMAKE_THREAD_LIBS_INIT})
endif()
else()
message(STATUS "Thread library not found and not necessary")
message(ERROR "Thread library not found!")
endif()

# TARGETS
Expand Down

0 comments on commit eef8337

Please sign in to comment.