Revision: 65373
http://sourceforge.net/p/brlcad/code/65373
Author: starseeker
Date: 2015-06-17 23:41:09 +0000 (Wed, 17 Jun 2015)
Log Message:
-----------
Erm. Adding Za seems to cause build trouble - even the BUILD_SLEEP try_compile
fails. Needs further investigation.
Modified Paths:
--------------
brlcad/trunk/CMakeLists.txt
brlcad/trunk/include/config_win.h.in
Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2015-06-17 23:29:35 UTC (rev 65372)
+++ brlcad/trunk/CMakeLists.txt 2015-06-17 23:41:09 UTC (rev 65373)
@@ -1545,7 +1545,10 @@
CHECK_CXX_FLAG("std=gnu++98" BUILD_TYPES Debug)
CHECK_CXX_FLAG("std=gnu++98" BUILD_TYPES Release VARS CXX03_FLAG)
endif()
-CHECK_C_FLAG("Za" BUILD_TYPES ALL)
+# TODO - should be using this with MSVC, but it breaks the BUILD_SLEEP
+# try_compile below with errors that appear to be coming from Windows
+# headers??
+# CHECK_C_FLAG("Za" BUILD_TYPES ALL)
# What POSIX do we want to target, initially? See
# http://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html
Modified: brlcad/trunk/include/config_win.h.in
===================================================================
--- brlcad/trunk/include/config_win.h.in 2015-06-17 23:29:35 UTC (rev
65372)
+++ brlcad/trunk/include/config_win.h.in 2015-06-17 23:41:09 UTC (rev
65373)
@@ -46,6 +46,11 @@
* Ensure that Project Settings / Project Options includes
* /Za for ANSI C
*/
+
+/* !!! this should not be here, need to figure out what the
+ * problem is trying to build with /Za */
+#define __STDC__ 1
+
# if !__STDC__
# error "STDC is not properly set on WIN32 build, add /Za to Project
Settings / Project Options"
# endif
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits