ENH: check for compile flags and add back c flag to unix generator
This commit is contained in:
parent
de93907bdd
commit
2e70c5094f
|
@ -136,6 +136,7 @@ int main()
|
||||||
cmFailed("CMake CMAKE_CXX_FLAGS is not being passed to the compiler!");
|
cmFailed("CMake CMAKE_CXX_FLAGS is not being passed to the compiler!");
|
||||||
#else
|
#else
|
||||||
cmPassed("CMake CMAKE_CXX_FLAGS is being passed to the compiler.");
|
cmPassed("CMake CMAKE_CXX_FLAGS is being passed to the compiler.");
|
||||||
|
#endif
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
// Test ADD_DEFINITIONS
|
// Test ADD_DEFINITIONS
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# define CMakeTest_EXPORT __declspec(dllimport)
|
# define CMakeTest_EXPORT __declspec(dllimport)
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
// unix needs nothing
|
/* unix needs nothing */
|
||||||
#define CMakeTest_EXPORT
|
#define CMakeTest_EXPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,7 @@ int main()
|
||||||
cmFailed("CMake CMAKE_CXX_FLAGS is not being passed to the compiler!");
|
cmFailed("CMake CMAKE_CXX_FLAGS is not being passed to the compiler!");
|
||||||
#else
|
#else
|
||||||
cmPassed("CMake CMAKE_CXX_FLAGS is being passed to the compiler.");
|
cmPassed("CMake CMAKE_CXX_FLAGS is being passed to the compiler.");
|
||||||
|
#endif
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
// Test ADD_DEFINITIONS
|
// Test ADD_DEFINITIONS
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# define CMakeTest_EXPORT __declspec(dllimport)
|
# define CMakeTest_EXPORT __declspec(dllimport)
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
// unix needs nothing
|
/* unix needs nothing */
|
||||||
#define CMakeTest_EXPORT
|
#define CMakeTest_EXPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,7 @@ int main()
|
||||||
cmFailed("CMake CMAKE_CXX_FLAGS is not being passed to the compiler!");
|
cmFailed("CMake CMAKE_CXX_FLAGS is not being passed to the compiler!");
|
||||||
#else
|
#else
|
||||||
cmPassed("CMake CMAKE_CXX_FLAGS is being passed to the compiler.");
|
cmPassed("CMake CMAKE_CXX_FLAGS is being passed to the compiler.");
|
||||||
|
#endif
|
||||||
// ----------------------------------------------------------------------
|
// ----------------------------------------------------------------------
|
||||||
// Test ADD_DEFINITIONS
|
// Test ADD_DEFINITIONS
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# define CMakeTest_EXPORT __declspec(dllimport)
|
# define CMakeTest_EXPORT __declspec(dllimport)
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
// unix needs nothing
|
/* unix needs nothing */
|
||||||
#define CMakeTest_EXPORT
|
#define CMakeTest_EXPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue