From e41b9f143c783651ce8576f0ccc5ca612883c9e6 Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Fri, 5 Apr 2019 00:18:16 +1300 Subject: CMake: cache C/C++ warn flags to compile PROJ targets Remove (most) needs to fiddle with CMAKE_C_FLAGS / CMAKE_CXX_FLAGS --- src/bin_cct.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bin_cct.cmake') diff --git a/src/bin_cct.cmake b/src/bin_cct.cmake index 9c4b0804..d2d61cf5 100644 --- a/src/bin_cct.cmake +++ b/src/bin_cct.cmake @@ -9,6 +9,8 @@ source_group("Source Files\\Bin" FILES ${CCT_SRC}) add_executable(cct ${CCT_SRC} ${CCT_INCLUDE}) target_link_libraries(cct ${PROJ_LIBRARIES}) +target_compile_options(cct PRIVATE ${PROJ_CXX_WARN_FLAGS}) + install(TARGETS cct RUNTIME DESTINATION ${BINDIR}) -- cgit v1.2.3