Skip to content

Commit 35bf3a9

Browse files
committed
L0 Loader updated to require threading for init
Signed-off-by: Spruit, Neil R <[email protected]>
1 parent 5476eee commit 35bf3a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ target_link_libraries(${TARGET_LOADER_NAME}
3232
${CMAKE_DL_LIBS}
3333
)
3434

35+
if (UNIX)
36+
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
37+
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
38+
find_package(Threads REQUIRED)
39+
target_link_libraries (${TARGET_LOADER_NAME} Threads::Threads)
40+
endif()
41+
3542
if(WIN32)
3643
target_link_libraries (${TARGET_LOADER_NAME} cfgmgr32.lib)
3744
endif()

0 commit comments

Comments
 (0)