File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
4245endif ()
4346
4447if (ENABLE_DEBUG)
@@ -107,14 +110,6 @@ else()
107110 add_executable (wwhd_rando main.cpp )
108111endif ()
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-
118113target_sources (wwhd_rando PRIVATE "randomizer.cpp" "options.cpp" "tweaks.cpp" "text_replacements.cpp" )
119114add_subdirectory ("libs" )
120115add_subdirectory ("utility" )
You can’t perform that action at this time.
0 commit comments