diff options
| author | Mike Taves <mwtoews@gmail.com> | 2019-04-05 00:18:16 +1300 |
|---|---|---|
| committer | Mike Taves <mwtoews@gmail.com> | 2019-04-05 22:49:43 +1300 |
| commit | e41b9f143c783651ce8576f0ccc5ca612883c9e6 (patch) | |
| tree | 6256dc65b4f4d4adb76b6b8b2f74c47e65b99633 /src/bin_cct.cmake | |
| parent | 1e2e512f9a671df504f6f01eee53dc26939b3c0a (diff) | |
| download | PROJ-e41b9f143c783651ce8576f0ccc5ca612883c9e6.tar.gz PROJ-e41b9f143c783651ce8576f0ccc5ca612883c9e6.zip | |
CMake: cache C/C++ warn flags to compile PROJ targets
Remove (most) needs to fiddle with CMAKE_C_FLAGS / CMAKE_CXX_FLAGS
Diffstat (limited to 'src/bin_cct.cmake')
| -rw-r--r-- | src/bin_cct.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
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}) |
