Bläddra i källkod

WiP. cmake stores a CMAKE_THREAD_LIBS_INIT variable for which thread library to use. I think this might be required higher up, in the GameLiftSDK, and not in the test, but the test is failing here (starting small)

Signed-off-by: AMZN-Gene <[email protected]>
AMZN-Gene 1 år sedan
förälder
incheckning
f76ec73093
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      package-system/AWSGameLiftServerSDK/test/CMakeLists.txt

+ 4 - 0
package-system/AWSGameLiftServerSDK/test/CMakeLists.txt

@@ -41,6 +41,10 @@ endfunction()
 PROJECT(test_AWSGameLift VERSION 1.0 LANGUAGES CXX)
 
 find_package(Threads REQUIRED)
+if (CMAKE_USE_PTHREADS_INIT)
+    target_link_libraries(test_AWSGameLift INTERFACE ${CMAKE_THREAD_LIBS_INIT})
+endif ()
+
 find_package(OpenSSL)
 find_package(AWSGameLiftServerSDK)