ENH: do not test for c and cxx flags on visual studio as it does not work yet
This commit is contained in:
parent
db28904467
commit
76e14b4f1a
|
@ -374,6 +374,10 @@ int main()
|
|||
#else
|
||||
cmPassed("CMake CMAKE_CXX_FLAGS is being passed to the compiler.");
|
||||
#endif
|
||||
std::string gen = CMAKE_GENERATOR;
|
||||
// visual studio is currently broken for c flags
|
||||
if(gen.find("Visual") == gen.npos)
|
||||
{
|
||||
#ifdef TEST_C_FLAGS
|
||||
cmFailed("CMake CMAKE_C_FLAGS are being passed to c++ files the compiler!");
|
||||
#else
|
||||
|
@ -389,6 +393,8 @@ int main()
|
|||
{
|
||||
cmFailed(msg);
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// Test ADD_DEFINITIONS
|
||||
|
||||
|
|
|
@ -70,3 +70,4 @@
|
|||
|
||||
// Test SET CACHE FORCE
|
||||
#cmakedefine FORCE_TEST
|
||||
#define CMAKE_GENERATOR "${CMAKE_GENERATOR}"
|
||||
|
|
|
@ -374,6 +374,10 @@ int main()
|
|||
#else
|
||||
cmPassed("CMake CMAKE_CXX_FLAGS is being passed to the compiler.");
|
||||
#endif
|
||||
std::string gen = CMAKE_GENERATOR;
|
||||
// visual studio is currently broken for c flags
|
||||
if(gen.find("Visual") == gen.npos)
|
||||
{
|
||||
#ifdef TEST_C_FLAGS
|
||||
cmFailed("CMake CMAKE_C_FLAGS are being passed to c++ files the compiler!");
|
||||
#else
|
||||
|
@ -389,6 +393,8 @@ int main()
|
|||
{
|
||||
cmFailed(msg);
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// Test ADD_DEFINITIONS
|
||||
|
||||
|
|
|
@ -70,3 +70,4 @@
|
|||
|
||||
// Test SET CACHE FORCE
|
||||
#cmakedefine FORCE_TEST
|
||||
#define CMAKE_GENERATOR "${CMAKE_GENERATOR}"
|
||||
|
|
|
@ -374,6 +374,10 @@ int main()
|
|||
#else
|
||||
cmPassed("CMake CMAKE_CXX_FLAGS is being passed to the compiler.");
|
||||
#endif
|
||||
std::string gen = CMAKE_GENERATOR;
|
||||
// visual studio is currently broken for c flags
|
||||
if(gen.find("Visual") == gen.npos)
|
||||
{
|
||||
#ifdef TEST_C_FLAGS
|
||||
cmFailed("CMake CMAKE_C_FLAGS are being passed to c++ files the compiler!");
|
||||
#else
|
||||
|
@ -389,6 +393,8 @@ int main()
|
|||
{
|
||||
cmFailed(msg);
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// Test ADD_DEFINITIONS
|
||||
|
||||
|
|
|
@ -70,3 +70,4 @@
|
|||
|
||||
// Test SET CACHE FORCE
|
||||
#cmakedefine FORCE_TEST
|
||||
#define CMAKE_GENERATOR "${CMAKE_GENERATOR}"
|
||||
|
|
Loading…
Reference in New Issue