diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
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") |