Revision: 41856
http://brlcad.svn.sourceforge.net/brlcad/?rev=41856&view=rev
Author: starseeker
Date: 2010-12-30 18:16:09 +0000 (Thu, 30 Dec 2010)
Log Message:
-----------
Need to support STRICT for executables, not just libraries.
Modified Paths:
--------------
brlcad/branches/cmake/misc/CMake/BRLCAD_Util.cmake
Modified: brlcad/branches/cmake/misc/CMake/BRLCAD_Util.cmake
===================================================================
--- brlcad/branches/cmake/misc/CMake/BRLCAD_Util.cmake 2010-12-30 18:12:22 UTC
(rev 41855)
+++ brlcad/branches/cmake/misc/CMake/BRLCAD_Util.cmake 2010-12-30 18:16:09 UTC
(rev 41856)
@@ -34,6 +34,16 @@
add_executable(${execname} ${srcslist})
target_link_libraries(${execname} ${libslist})
INSTALL(TARGETS ${execname} RUNTIME DESTINATION ${BRLCAD_INSTALL_BIN_DIR})
+ # Enable extra compiler flags if local executables and/or global options
dictate
+ SET(LOCAL_COMPILE_FLAGS "")
+ FOREACH(extraarg ${ARGN})
+ IF(${extraarg} MATCHES "STRICT" AND BRLCAD-ENABLE_STRICT)
+ SET(LOCAL_COMPILE_FLAGS "${LOCAL_COMPILE_FLAGS}
${STRICT_FLAGS}")
+ ENDIF(${extraarg} MATCHES "STRICT" AND BRLCAD-ENABLE_STRICT)
+ ENDFOREACH(extraarg ${ARGN})
+ IF(LOCAL_COMPILE_FLAGS)
+ SET_TARGET_PROPERTIES(${execname} PROPERTIES COMPILE_FLAGS
${LOCAL_COMPILE_FLAGS})
+ ENDIF(LOCAL_COMPILE_FLAGS)
ENDMACRO(BRLCAD_ADDEXEC execname srcs libs)
MACRO(BRLCAD_ADDLIB libname srcs libs)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits