Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
flagarde authored May 16, 2024
1 parent 67bd9bd commit cfe200e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(KHAOS_PUBLIC_HEADERS
"${PROJECT_SOURCE_DIR}/include/Khaos/Preprocessor.h"
"${PROJECT_SOURCE_DIR}/include/Khaos/Version.h")
set_target_properties(Khaos PROPERTIES PUBLIC_HEADER "${KHAOS_PUBLIC_HEADERS}")
target_compile_options(Khaos INTERFACE $<$<AND:$<CXX_COMPILER_ID:Clang>,$<STREQUAL:CMAKE_CXX_COMPILER_FRONTEND_VARIANT,GNU>,$<VERSION_LESS:CMAKE_CXX_COMPILER_VERSION,3.6>>:-Wno-c++98-compat-pedantic>)
target_compile_options(Khaos INTERFACE $<$<CXX_COMPILER_ID:Clang>:-Wno-c++98-compat-pedantic>)
target_include_directories(Khaos INTERFACE "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include/>" "$<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include/>" "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
install(TARGETS Khaos EXPORT KhaosTargets
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
Expand Down

0 comments on commit cfe200e

Please sign in to comment.