Revision: 77725
          http://sourceforge.net/p/brlcad/code/77725
Author:   starseeker
Date:     2020-11-10 21:50:03 +0000 (Tue, 10 Nov 2020)
Log Message:
-----------
Stash the cmake_language method for dealing with empty string passing for later 
use - it requires 3.18, but seems to be a (much) cleaner solution to this 
particular issue.  See https://gitlab.kitware.com/cmake/cmake/-/issues/21414 
for more info.

Modified Paths:
--------------
    brlcad/trunk/CMakeLists.txt

Modified: brlcad/trunk/CMakeLists.txt
===================================================================
--- brlcad/trunk/CMakeLists.txt 2020-11-10 21:44:21 UTC (rev 77724)
+++ brlcad/trunk/CMakeLists.txt 2020-11-10 21:50:03 UTC (rev 77725)
@@ -375,6 +375,17 @@
 # unknowingly tries.
 function(BRLCAD_ADD_TEST NAME test_name COMMAND test_prog)
 
+  # TODO - once we can require CMake 3.18, replace the empty string workaround
+  # below with this cmake_language based version.  See
+  # https://gitlab.kitware.com/cmake/cmake/-/issues/21414
+
+  # cmake_parse_arguments(PARSE_ARGV 3 ARG "" "" "")
+  # foreach(_av IN LISTS ARG_UNPARSED_ARGUMENTS)
+  #   string(APPEND test_args " [==[${_av}]==]")
+  # endforeach()
+  # cmake_language(EVAL CODE "add_test(NAME ${test_name} COMMAND 
${test_args})")
+
+
   # find any occurrences of empty strings
   set(idx 0)
   set(matches)

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

Reply via email to