Skip to content

Commit df382c9

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

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
@@ -39,6 +39,9 @@ if(DEFINED DEVKITPRO)
3939
add_compile_definitions(DEVKITPRO)
4040
add_compile_options(-Ofast -mcpu=750 -meabi -mhard-float -ffunction-sections -flto -Wall)
4141
add_link_options(-flto -fno-fat-lto-objects)
42+
else()
43+
find_package(Threads REQUIRED)
44+
target_link_libraries(wwhd_rando PRIVATE Threads::Threads)
4245
endif()
4346

4447
if(ENABLE_DEBUG)
@@ -107,14 +110,6 @@ else()
107110
add_executable(wwhd_rando main.cpp)
108111
endif()
109112

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-
118113
target_sources(wwhd_rando PRIVATE "randomizer.cpp" "options.cpp" "tweaks.cpp" "text_replacements.cpp")
119114
add_subdirectory("libs")
120115
add_subdirectory("utility")

0 commit comments

Comments
 (0)