aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarat Dukhan <marat@fb.com>2017-11-03 16:08:49 -0700
committerMarat Dukhan <marat@fb.com>2017-11-03 16:08:49 -0700
commit7d3b372f888386811da5f6b36827305eab6b84b3 (patch)
tree33668fa785721752acc31dc8a33a1ffe371e4a7c
parentc3202af4371eaae4249350b270e17333244792f2 (diff)
downloadplatform_external_pthreadpool-7d3b372f888386811da5f6b36827305eab6b84b3.tar.gz
platform_external_pthreadpool-7d3b372f888386811da5f6b36827305eab6b84b3.tar.bz2
platform_external_pthreadpool-7d3b372f888386811da5f6b36827305eab6b84b3.zip
CMake: error on unsupported PTHREADPOOL_LIBRARY_TYPE
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 20a786d..373af0d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -74,6 +74,8 @@ ELSEIF(PTHREADPOOL_LIBRARY_TYPE STREQUAL "shared")
ADD_LIBRARY(pthreadpool SHARED ${PTHREADPOOL_SRCS})
ELSEIF(PTHREADPOOL_LIBRARY_TYPE STREQUAL "static")
ADD_LIBRARY(pthreadpool STATIC ${PTHREADPOOL_SRCS})
+ELSE()
+ MESSAGE(FATAL_ERROR "Unsupported library type ${PTHREADPOOL_LIBRARY_TYPE}")
ENDIF()
TARGET_LINK_LIBRARIES(pthreadpool PUBLIC pthreadpool_interface)
IF(NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")