[BW]: [NIP] Further CMakeLists.txt cleanup to use target_* features.
This commit is contained in:
parent
4571ce36d5
commit
8c49a8b887
1 changed files with 2 additions and 1 deletions
|
|
@ -171,8 +171,9 @@ IF(WIN32)
|
|||
target_compile_options(fc PUBLIC /EHa)
|
||||
ELSE()
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall" )
|
||||
|
||||
IF(APPLE)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++ -Wall")
|
||||
target_compile_options(fc PUBLIC -std=c++11 -stdlib=libc++ -Wall)
|
||||
ELSE()
|
||||
target_compile_options(fc PUBLIC -std=c++11 -Wall -fnon-call-exceptions -Wno-unused-local-typedefs -fmax-errors=3)
|
||||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-local-typedefs -fmax-errors=3 ")
|
||||
|
|
|
|||
Loading…
Reference in a new issue