diff --git a/CMakeLists.txt b/CMakeLists.txt index fe2ffe5..e72e38b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON) add_compile_options("$<$:/utf-8>") add_compile_options("$<$:/utf-8>") -option(papilio_c_interface "build C interface" ON) +option(papilio_c_interface "build C interface" $<$:OFF:ON>) option(papilio_build_unit_test "build unit tests" OFF) option(papilio_build_example "build examples" OFF) option(papilio_build_module "build module (experimental)" OFF) @@ -50,6 +50,9 @@ target_compile_options(papilio PRIVATE $<$:/W4> $<$>:-Wall -Wextra -Wpedantic> ) +if(${papilio_c_interface}) + target_compile_options(papilio PRIVATE $<$:/Zc:preprocessor>) +endif() if(${papilio_build_example}) add_subdirectory(example)