git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
907166f
)
Target-specific, compiler-aware warnings.
author
Maksym Mamontov
<madf@madf.info>
Tue, 28 Jan 2020 17:31:40 +0000
(19:31 +0200)
committer
Maksym Mamontov
<madf@madf.info>
Tue, 28 Jan 2020 17:31:40 +0000
(19:31 +0200)
libs/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/libs/CMakeLists.txt
b/libs/CMakeLists.txt
index 8528b9510308022847426f477e340eb0383235f7..17b90799d1228b11bcf54cf321c8545963ea4b4d 100644
(file)
--- a/
libs/CMakeLists.txt
+++ b/
libs/CMakeLists.txt
@@
-29,9
+29,9
@@
if ( BUILD_LIB_IA )
endif ( BUILD_LIB_IA )
if ( BUILD_LIB_IBPP )
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-old-style-cast -Wno-useless-cast")
add_library ( ibpp STATIC ibpp/all_in_one.cpp )
target_include_directories ( ibpp PUBLIC ibpp/include )
+ target_compile_options ( ibpp PRIVATE -Wno-old-style-cast $<$<CXX_COMPILER_ID:GNU>:-Wno-useless-cast> )
endif ( BUILD_LIB_IBPP )
if ( BUILD_LIB_JSON )