Get rid of cmake find_package(Threads) (#357)
author이상규/동작제어Lab(SR)/Principal Engineer/삼성전자 <sg5.lee@samsung.com>
Mon, 2 Apr 2018 02:53:40 +0000 (11:53 +0900)
committer최형규/동작제어Lab(SR)/Senior Engineer/삼성전자 <hk0110.choi@samsung.com>
Mon, 2 Apr 2018 02:53:40 +0000 (11:53 +0900)
We cannot use find_package(Threads) since some of our build
system use old version cmake. pthread is linked directly now.
So I removed find_package(Threads) and related statements.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
src/runtime/ref/nn/runtime/CMakeLists.txt

index 73bbfd2..20fa222 100644 (file)
@@ -28,11 +28,6 @@ SET (SRCS
 #####################################################################
 include_directories(${LIB_RUNTIME} PRIVATE include ${INC_DIRS})
 
-# TODO : please explain the reasoning begind this line.
-set(THREADS_PTHREAD_ARG "2" CACHE STRING "Forcibly set by CMakeLists.txt." FORCE)
-set(THREADS_PREFER_PTHREAD_FLAG ON)
-find_package(Threads REQUIRED)
-
 # Executable `runtime_run` (Dummy runner executable using NN API)
 SET (TEST_SRCS sample/add_main.cpp)
 add_executable(runtime_run_add ${TEST_SRCS})