Revision: 77465
http://sourceforge.net/p/brlcad/code/77465
Author: starseeker
Date: 2020-10-16 21:32:51 +0000 (Fri, 16 Oct 2020)
Log Message:
-----------
More work on multiconfig. For some reason the tests subdirs aren't happy with
the Ninja MultiConfig generator - need to look more closely at that.
Modified Paths:
--------------
brlcad/branches/thirdparty_rework/CMakeLists.txt
brlcad/branches/thirdparty_rework/regress/user/CMakeLists.txt
brlcad/branches/thirdparty_rework/src/libbn/CMakeLists.txt
brlcad/branches/thirdparty_rework/src/libbu/CMakeLists.txt
brlcad/branches/thirdparty_rework/src/librt/CMakeLists.txt
brlcad/branches/thirdparty_rework/src/superbuild/CMake/ExternalProject_Target.cmake
brlcad/branches/thirdparty_rework/src/superbuild/gdal.cmake
brlcad/branches/thirdparty_rework/src/superbuild/itcl.cmake
brlcad/branches/thirdparty_rework/src/superbuild/itk.cmake
brlcad/branches/thirdparty_rework/src/superbuild/netpbm.cmake
brlcad/branches/thirdparty_rework/src/superbuild/png.cmake
brlcad/branches/thirdparty_rework/src/superbuild/proj4.cmake
brlcad/branches/thirdparty_rework/src/superbuild/regex.cmake
brlcad/branches/thirdparty_rework/src/superbuild/stepcode.cmake
brlcad/branches/thirdparty_rework/src/superbuild/zlib.cmake
Modified: brlcad/branches/thirdparty_rework/CMakeLists.txt
===================================================================
--- brlcad/branches/thirdparty_rework/CMakeLists.txt 2020-10-16 20:45:58 UTC
(rev 77464)
+++ brlcad/branches/thirdparty_rework/CMakeLists.txt 2020-10-16 21:32:51 UTC
(rev 77465)
@@ -254,8 +254,8 @@
# Set up include paths for generated header files. For multi-config
# builds, make sure we get build-specific dirs.
if(CMAKE_CONFIGURATION_TYPES)
- include_directories(${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${INCLUDE_DIR})
-
include_directories(${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${INCLUDE_DIR}/brlcad)
+ include_directories(${CMAKE_BINARY_DIR}/$<CONFIG>/${INCLUDE_DIR})
+ include_directories(${CMAKE_BINARY_DIR}/$<CONFIG>/${INCLUDE_DIR}/brlcad)
else(CMAKE_CONFIGURATION_TYPES)
include_directories(${CMAKE_BINARY_DIR}/${INCLUDE_DIR}/brlcad)
endif(CMAKE_CONFIGURATION_TYPES)
Modified: brlcad/branches/thirdparty_rework/regress/user/CMakeLists.txt
===================================================================
--- brlcad/branches/thirdparty_rework/regress/user/CMakeLists.txt
2020-10-16 20:45:58 UTC (rev 77464)
+++ brlcad/branches/thirdparty_rework/regress/user/CMakeLists.txt
2020-10-16 21:32:51 UTC (rev 77465)
@@ -26,7 +26,7 @@
# superset of what will be installed, but is the best available option without
# performing an actual install step.)
if(NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".")
- target_include_directories(cad_user PUBLIC
"${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${INCLUDE_DIR}/brlcad")
+ target_include_directories(cad_user PUBLIC
"${CMAKE_BINARY_DIR}/$<CONFIG>/${INCLUDE_DIR}/brlcad")
else(NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".")
target_include_directories(cad_user PUBLIC
"${CMAKE_BINARY_DIR}/${INCLUDE_DIR}/brlcad")
endif(NOT "${CMAKE_CFG_INTDIR}" STREQUAL ".")
Modified: brlcad/branches/thirdparty_rework/src/libbn/CMakeLists.txt
===================================================================
--- brlcad/branches/thirdparty_rework/src/libbn/CMakeLists.txt 2020-10-16
20:45:58 UTC (rev 77464)
+++ brlcad/branches/thirdparty_rework/src/libbn/CMakeLists.txt 2020-10-16
21:32:51 UTC (rev 77465)
@@ -51,7 +51,7 @@
BRLCAD_ADDLIB(libbn "${LIBBN_SOURCES}" "libbu")
set_target_properties(libbn PROPERTIES VERSION 20.0.1 SOVERSION 20)
-add_subdirectory(tests)
+#add_subdirectory(tests)
CMAKEFILES(
CMakeLists.txt
Modified: brlcad/branches/thirdparty_rework/src/libbu/CMakeLists.txt
===================================================================
--- brlcad/branches/thirdparty_rework/src/libbu/CMakeLists.txt 2020-10-16
20:45:58 UTC (rev 77464)
+++ brlcad/branches/thirdparty_rework/src/libbu/CMakeLists.txt 2020-10-16
21:32:51 UTC (rev 77465)
@@ -167,7 +167,7 @@
BRLCAD_ADDDATA(fix.6r vfont)
BRLCAD_ADDDATA(nonie.r.12 vfont)
-add_subdirectory(tests)
+#add_subdirectory(tests)
set(bu_ignore_files
CMakeLists.txt
Modified: brlcad/branches/thirdparty_rework/src/librt/CMakeLists.txt
===================================================================
--- brlcad/branches/thirdparty_rework/src/librt/CMakeLists.txt 2020-10-16
20:45:58 UTC (rev 77464)
+++ brlcad/branches/thirdparty_rework/src/librt/CMakeLists.txt 2020-10-16
21:32:51 UTC (rev 77465)
@@ -389,7 +389,7 @@
#BRLCAD_ADDEXEC(test_root3-subd test_root3-subd.cpp
"librt;libwdb;libbrep;libbu" NO_STRICT NO_INSTALL)
#BRLCAD_ADDEXEC(test_surfacetree test_surfacetree.cpp
"librt;libwdb;libbrep;libbu" NO_STRICT NO_INSTALL)
-add_subdirectory(tests)
+#add_subdirectory(tests)
CMAKEFILES(
CMakeLists.txt
Modified:
brlcad/branches/thirdparty_rework/src/superbuild/CMake/ExternalProject_Target.cmake
===================================================================
---
brlcad/branches/thirdparty_rework/src/superbuild/CMake/ExternalProject_Target.cmake
2020-10-16 20:45:58 UTC (rev 77464)
+++
brlcad/branches/thirdparty_rework/src/superbuild/CMake/ExternalProject_Target.cmake
2020-10-16 21:32:51 UTC (rev 77465)
@@ -53,7 +53,7 @@
foreach(CFG_TYPE ${CMAKE_CONFIGURATION_TYPES})
add_custom_command(
OUTPUT "${CMAKE_BINARY_DIR}/${CFG_TYPE}/${rdir}/${tfile}"
- COMMAND ${CMAKE_COMMAND} -DSRC="${root}${CFG_TYPE}/${rdir}/${ofile}"
-DDEST="${CMAKE_BINARY_DIR}/${CFG_TYPE}/${rdir}/${tfile}" -P
"${CMAKE_BINARY_DIR}/CMakeFiles/cp.cmake"
+ COMMAND ${CMAKE_COMMAND} -DSRC="${root}/${rdir}/${ofile}"
-DDEST="${CMAKE_BINARY_DIR}/${CFG_TYPE}/${rdir}/${tfile}" -P
"${CMAKE_BINARY_DIR}/CMakeFiles/cp.cmake"
DEPENDS ${extproj}
)
set(TOUT ${TOUT} "${CMAKE_BINARY_DIR}/${CFG_TYPE}/${rdir}/${tfile}")
@@ -165,8 +165,8 @@
# If we're multiconfig, define properties for each configuration
set_target_properties(${etarg} PROPERTIES
IMPORTED_NO_SONAME_${CFG_TYPE_UPPER} TRUE
- IMPORTED_LOCATION_${CFG_TYPE_UPPER}
"${CMAKE_BINARY_DIR}/${CFG_TYPE}/${REL_DIR}/${CLINK_TARGET}"
- IMPORTED_SONAME_${CFG_TYPE_UPPER} "${CLINK_TARGET}"
+ IMPORTED_LOCATION_${CFG_TYPE_UPPER}
"${CMAKE_BINARY_DIR}/${CFG_TYPE}/${REL_DIR}/${LINK_TARGET}"
+ IMPORTED_SONAME_${CFG_TYPE_UPPER} "${LINK_TARGET}"
)
# For Windows, IMPORTED_IMPLIB is important for shared libraries.
@@ -173,7 +173,7 @@
# It is that property that will tell a toplevel target what to link
against
# when building - pointing out the dll isn't enough by itself.
if(ET_SHARED AND MSVC)
- string(REPLACE "${CMAKE_SHARED_LIBRARY_SUFFIX}" ".lib" IMPLIB_FILE
"${CLINK_TARGET}")
+ string(REPLACE "${CMAKE_SHARED_LIBRARY_SUFFIX}" ".lib" IMPLIB_FILE
"${LINK_TARGET}")
set_target_properties(${etarg} PROPERTIES
IMPORTED_IMPLIB_${CFG_TYPE_UPPER}
"${CMAKE_BINARY_DIR}/${CFG_TYPE}/${REL_DIR}/${IMPLIB_FILE}"
)
Modified: brlcad/branches/thirdparty_rework/src/superbuild/gdal.cmake
===================================================================
--- brlcad/branches/thirdparty_rework/src/superbuild/gdal.cmake 2020-10-16
20:45:58 UTC (rev 77464)
+++ brlcad/branches/thirdparty_rework/src/superbuild/gdal.cmake 2020-10-16
21:32:51 UTC (rev 77465)
@@ -36,7 +36,7 @@
set(PNG_TARGET PNG_BLD)
endif (TARGET PNG_BLD)
- set(GDAL_INSTDIR ${CMAKE_BINARY_DIR}/gdal)
+ set(GDAL_INSTDIR ${CMAKE_BINARY_DIR}/gdal$<CONFIG>)
ExternalProject_Add(GDAL_BLD
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/gdal"
Modified: brlcad/branches/thirdparty_rework/src/superbuild/itcl.cmake
===================================================================
--- brlcad/branches/thirdparty_rework/src/superbuild/itcl.cmake 2020-10-16
20:45:58 UTC (rev 77464)
+++ brlcad/branches/thirdparty_rework/src/superbuild/itcl.cmake 2020-10-16
21:32:51 UTC (rev 77465)
@@ -73,7 +73,7 @@
get_filename_component(TCLCONF_DIR "${TCL_LIBRARY}" DIRECTORY)
endif (TARGET tcl_stage)
- set(ITCL_INSTDIR ${CMAKE_BINARY_DIR}/itcl3)
+ set(ITCL_INSTDIR ${CMAKE_BINARY_DIR}/itcl3$<CONFIG>)
if (NOT MSVC)
Modified: brlcad/branches/thirdparty_rework/src/superbuild/itk.cmake
===================================================================
--- brlcad/branches/thirdparty_rework/src/superbuild/itk.cmake 2020-10-16
20:45:58 UTC (rev 77464)
+++ brlcad/branches/thirdparty_rework/src/superbuild/itk.cmake 2020-10-16
21:32:51 UTC (rev 77465)
@@ -65,7 +65,7 @@
get_filename_component(TKCONF_DIR "${TK_LIBRARY}" DIRECTORY)
endif (TARGET tk_stage)
- set(ITK_INSTDIR ${CMAKE_BINARY_DIR}/itk3)
+ set(ITK_INSTDIR ${CMAKE_BINARY_DIR}/itk3$<CONFIG>)
if (NOT MSVC)
Modified: brlcad/branches/thirdparty_rework/src/superbuild/netpbm.cmake
===================================================================
--- brlcad/branches/thirdparty_rework/src/superbuild/netpbm.cmake
2020-10-16 20:45:58 UTC (rev 77464)
+++ brlcad/branches/thirdparty_rework/src/superbuild/netpbm.cmake
2020-10-16 21:32:51 UTC (rev 77465)
@@ -19,7 +19,7 @@
set(NETPBM_BASENAME libnetpbm)
endif (MSVC)
- set(NETPBM_INSTDIR ${CMAKE_BINARY_DIR}/netpbm)
+ set(NETPBM_INSTDIR ${CMAKE_BINARY_DIR}/netpbm$<CONFIG>)
ExternalProject_Add(NETPBM_BLD
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/netpbm"
Modified: brlcad/branches/thirdparty_rework/src/superbuild/png.cmake
===================================================================
--- brlcad/branches/thirdparty_rework/src/superbuild/png.cmake 2020-10-16
20:45:58 UTC (rev 77464)
+++ brlcad/branches/thirdparty_rework/src/superbuild/png.cmake 2020-10-16
21:32:51 UTC (rev 77465)
@@ -41,7 +41,7 @@
list(APPEND PNG_DEPS ZLIB_BLD zlib_stage)
endif (TARGET ZLIB_BLD)
- set(PNG_INSTDIR ${CMAKE_BINARY_DIR}/png)
+ set(PNG_INSTDIR ${CMAKE_BINARY_DIR}/png$<CONFIG>)
ExternalProject_Add(PNG_BLD
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/png"
Modified: brlcad/branches/thirdparty_rework/src/superbuild/proj4.cmake
===================================================================
--- brlcad/branches/thirdparty_rework/src/superbuild/proj4.cmake
2020-10-16 20:45:58 UTC (rev 77464)
+++ brlcad/branches/thirdparty_rework/src/superbuild/proj4.cmake
2020-10-16 21:32:51 UTC (rev 77465)
@@ -27,7 +27,7 @@
set(PROJ_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX}.${PROJ_VERSION})
endif (MSVC)
- set(PROJ4_INSTDIR ${CMAKE_BINARY_DIR}/proj-4)
+ set(PROJ4_INSTDIR ${CMAKE_BINARY_DIR}/proj-4$<CONFIG>)
ExternalProject_Add(PROJ4_BLD
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/proj-4"
Modified: brlcad/branches/thirdparty_rework/src/superbuild/regex.cmake
===================================================================
--- brlcad/branches/thirdparty_rework/src/superbuild/regex.cmake
2020-10-16 20:45:58 UTC (rev 77464)
+++ brlcad/branches/thirdparty_rework/src/superbuild/regex.cmake
2020-10-16 21:32:51 UTC (rev 77465)
@@ -22,7 +22,7 @@
set(REGEX_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX}.${REGEX_VERSION})
endif (MSVC)
- set(REGEX_INSTDIR ${CMAKE_BINARY_DIR}/regex)
+ set(REGEX_INSTDIR ${CMAKE_BINARY_DIR}/regex$<CONFIG>)
# Platform differences in default linker behavior make it difficult to
# guarantee that our libregex symbols will override libc. We'll avoid the
@@ -46,7 +46,7 @@
${REGEX_BASENAME}${CMAKE_STATIC_LIBRARY_SUFFIX}
RPATH
)
-
+
ExternalProject_ByProducts(regex REGEX_BLD ${REGEX_INSTDIR} ${INCLUDE_DIR}
regex.h
)
Modified: brlcad/branches/thirdparty_rework/src/superbuild/stepcode.cmake
===================================================================
--- brlcad/branches/thirdparty_rework/src/superbuild/stepcode.cmake
2020-10-16 20:45:58 UTC (rev 77464)
+++ brlcad/branches/thirdparty_rework/src/superbuild/stepcode.cmake
2020-10-16 21:32:51 UTC (rev 77465)
@@ -31,7 +31,7 @@
list(APPEND SC_DEPS perplex_lemon perplex_re2c perplex_perplex)
endif (TARGET PERPLEX_BLD)
- set(STEPCODE_INSTDIR "${CMAKE_BINARY_DIR}/stepcode")
+ set(STEPCODE_INSTDIR "${CMAKE_BINARY_DIR}/stepcode$<CONFIG>")
ExternalProject_Add(STEPCODE_BLD
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/stepcode"
Modified: brlcad/branches/thirdparty_rework/src/superbuild/zlib.cmake
===================================================================
--- brlcad/branches/thirdparty_rework/src/superbuild/zlib.cmake 2020-10-16
20:45:58 UTC (rev 77464)
+++ brlcad/branches/thirdparty_rework/src/superbuild/zlib.cmake 2020-10-16
21:32:51 UTC (rev 77465)
@@ -28,7 +28,7 @@
set(ZLIB_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX}.${ZLIB_VERSION})
endif (MSVC)
- set(ZLIB_INSTDIR ${CMAKE_BINARY_DIR}/zlib)
+ set(ZLIB_INSTDIR ${CMAKE_BINARY_DIR}/zlib$<CONFIG>)
ExternalProject_Add(ZLIB_BLD
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/zlib"
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