filipdutescu/modern-cpp-template

[BUG] Project_BUILD_HEADERS_ONLY=ON results in an error

hanzmaharajh opened this issue · 0 comments

Describe the bug
Building with Project_BUILD_HEADERS_ONLY=ON results in an error.

CMake Error at cmake/CompilerWarnings.cmake:93 (target_compile_options): target_compile_options may only set INTERFACE properties on INTERFACE targets

To Reproduce
cmake -DProject_BUILD_HEADERS_ONLY=ON

Expected behavior
This should succeed.