Skip to content

Commit d79dd58

Browse files
committed
CMake Threads Change
- Always require the threads package on non-Wii U platforms
1 parent ea7b51e commit d79dd58

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,6 @@ else()
107107
add_executable(wwhd_rando main.cpp)
108108
endif()
109109

110-
if(GET_THREADS)
111-
find_package(Threads REQUIRED)
112-
113-
if(CMAKE_USE_PTHREADS_INIT)
114-
target_link_libraries(wwhd_rando PRIVATE Threads::Threads)
115-
endif()
116-
endif()
117-
118110
target_sources(wwhd_rando PRIVATE "randomizer.cpp" "options.cpp" "tweaks.cpp" "text_replacements.cpp")
119111
add_subdirectory("libs")
120112
add_subdirectory("utility")
@@ -148,4 +140,7 @@ if(DEFINED DEVKITPRO)
148140
#TVSPLASH "${CMAKE_SOURCE_DIR}/platform/Splash.png"
149141
#DRCSPLASH "${CMAKE_SOURCE_DIR}/platform/Splash.png"
150142
)
143+
else()
144+
find_package(Threads REQUIRED)
145+
target_link_libraries(wwhd_rando PRIVATE Threads::Threads)
151146
endif()

0 commit comments

Comments
 (0)