mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Removed quoted variables to avoid CMP0054 policy warnings on CMake 3.3.0.
This commit is contained in:

committed by
Jesse Beder

parent
005a6a19ee
commit
57805dfd6a
@@ -148,8 +148,8 @@ if(WIN32)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# GCC or Clang specialities
|
# GCC or Clang specialities
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU" OR
|
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR
|
||||||
"${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
### General stuff
|
### General stuff
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(CMAKE_SHARED_LIBRARY_PREFIX "") # DLLs do not have a "lib" prefix
|
set(CMAKE_SHARED_LIBRARY_PREFIX "") # DLLs do not have a "lib" prefix
|
||||||
|
@@ -8,8 +8,8 @@ if(WIN32 AND BUILD_SHARED_LIBS)
|
|||||||
add_definitions("-DGTEST_LINKED_AS_SHARED_LIBRARY")
|
add_definitions("-DGTEST_LINKED_AS_SHARED_LIBRARY")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU" OR
|
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR
|
||||||
"${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
set(yaml_test_flags "-Wno-c99-extensions -Wno-variadic-macros -Wno-sign-compare -std=c++11")
|
set(yaml_test_flags "-Wno-c99-extensions -Wno-variadic-macros -Wno-sign-compare -std=c++11")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user