|
|
@@ -66,6 +66,9 @@ endif()
|
|
|
|
|
|
if(PK_BUILD_SHARED_LIB)
|
|
|
message(">> Building shared library")
|
|
|
+ if(PK_ENABLE_DETERMINISM)
|
|
|
+ message(FATAL_ERROR "PK_ENABLE_DETERMINISM is not supported with shared library")
|
|
|
+ endif()
|
|
|
add_library(${PROJECT_NAME} SHARED ${POCKETPY_SRC})
|
|
|
elseif(PK_BUILD_STATIC_LIB)
|
|
|
message(">> Building static library")
|
|
|
@@ -76,6 +79,9 @@ else()
|
|
|
add_library(${PROJECT_NAME} STATIC ${POCKETPY_SRC})
|
|
|
else()
|
|
|
message(">> Building shared library + executable")
|
|
|
+ if(PK_ENABLE_DETERMINISM)
|
|
|
+ message(FATAL_ERROR "PK_ENABLE_DETERMINISM is not supported with shared library")
|
|
|
+ endif()
|
|
|
add_library(${PROJECT_NAME} SHARED ${POCKETPY_SRC})
|
|
|
endif()
|
|
|
add_executable(main src2/main.c)
|