1
0
forked from blue/mlc

pthreads for compatibility

This commit is contained in:
Blue 2023-10-20 18:12:26 -03:00
parent 2cce5f52f0
commit 3971a5b662
Signed by untrusted user: blue
GPG Key ID: 9B203B252A63EE38

View File

@ -25,11 +25,13 @@ message("Compilation options: " ${COMPILE_OPTIONS})
set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(FLAC REQUIRED) find_package(FLAC REQUIRED)
find_package(JPEG REQUIRED) find_package(JPEG REQUIRED)
find_package(LAME REQUIRED) find_package(LAME REQUIRED)
find_package(TAGLIB REQUIRED) find_package(TAGLIB REQUIRED)
find_package(Threads REQUIRED)
add_executable(${PROJECT_NAME}) add_executable(${PROJECT_NAME})
target_compile_options(${PROJECT_NAME} PRIVATE ${COMPILE_OPTIONS}) target_compile_options(${PROJECT_NAME} PRIVATE ${COMPILE_OPTIONS})
@ -41,6 +43,7 @@ target_link_libraries(${PROJECT_NAME}
LAME::LAME LAME::LAME
JPEG::JPEG JPEG::JPEG
TAGLIB::TAGLIB TAGLIB::TAGLIB
Threads::Threads
) )
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin) install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)