Use C++11 for tests during CMake configuration if necessary
Enable CMake policy CMP0067 to ensure that the tests are done using the same C++ dialect that is actually used for compiling the library.
This commit is contained in:
parent
9567adb8cc
commit
746bbd08cc
1 changed files with 5 additions and 0 deletions
|
|
@ -48,3 +48,8 @@ if(POLICY CMP0054)
|
|||
# only interpret if() arguments as variables or keywords when unquoted
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
endif()
|
||||
|
||||
if(POLICY CMP0067)
|
||||
# Honor language standard in try_compile() source-file signature.
|
||||
cmake_policy(SET CMP0067 NEW)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue