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_proj.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_proj.cmake')
| -rw-r--r-- | src/bin_proj.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin_proj.cmake b/src/bin_proj.cmake index c55ccfda..b9ae03e5 100644 --- a/src/bin_proj.cmake +++ b/src/bin_proj.cmake @@ -5,12 +5,13 @@ set(PROJ_SRC source_group("Source Files\\Bin" FILES ${PROJ_SRC}) -#Executable add_executable(binproj ${PROJ_SRC}) set_target_properties(binproj PROPERTIES OUTPUT_NAME proj) target_link_libraries(binproj ${PROJ_LIBRARIES}) +target_compile_options(binproj PRIVATE ${PROJ_CXX_WARN_FLAGS}) + install(TARGETS binproj RUNTIME DESTINATION ${BINDIR}) |
