Add a CMake module for icon conversions
This commit is contained in:
@@ -9,15 +9,15 @@ find_package (Threads)
|
||||
function (add_threads target)
|
||||
if (NOT Threads_FOUND OR NOT CMAKE_USE_PTHREADS_INIT)
|
||||
message (FATAL_ERROR "pthreads not found")
|
||||
endif (NOT Threads_FOUND OR NOT CMAKE_USE_PTHREADS_INIT)
|
||||
endif ()
|
||||
|
||||
if (THREADS_HAVE_PTHREAD_ARG)
|
||||
set_property (TARGET ${target} PROPERTY
|
||||
COMPILE_OPTIONS "-pthread")
|
||||
set_property (TARGET ${target} PROPERTY
|
||||
INTERFACE_COMPILE_OPTIONS "-pthread")
|
||||
endif (THREADS_HAVE_PTHREAD_ARG)
|
||||
endif ()
|
||||
if (CMAKE_THREAD_LIBS_INIT)
|
||||
target_link_libraries (${target} "${CMAKE_THREAD_LIBS_INIT}")
|
||||
endif (CMAKE_THREAD_LIBS_INIT)
|
||||
endfunction (add_threads)
|
||||
endif ()
|
||||
endfunction ()
|
||||
|
||||
Reference in New Issue
Block a user