#1747 Build System : Make variable available to both current and parent scope

This commit is contained in:
Magne Sjaastad committed 2017-08-08 13:51:32 +02:00
1 parent 7e3e538a43
commit acd7b4784d
1 file changed
+5 -2
+5 -2
View File
@@ -197,7 +197,7 @@ if(MSVC)
${RESINSIGHT_HDF5_DIR}/lib/libszip.lib ${RESINSIGHT_HDF5_DIR}/lib/libszip.lib
) )
set(RESINSIGHT_USE_HDF5 1 PARENT_SCOPE) set(RESINSIGHT_USE_HDF5 1)
message( STATUS "Using HDF5 from : ${RESINSIGHT_HDF5_DIR}" ) message( STATUS "Using HDF5 from : ${RESINSIGHT_HDF5_DIR}" )
endif() endif()
else() else()
@@ -211,7 +211,7 @@ else()
${HDF5_LIBRARIES} ${HDF5_LIBRARIES}
) )
set(RESINSIGHT_USE_HDF5 1 PARENT_SCOPE) set(RESINSIGHT_USE_HDF5 1)
message( STATUS "Using HDF5 libraries : ${HDF5_LIBRARIES}" ) message( STATUS "Using HDF5 libraries : ${HDF5_LIBRARIES}" )
endif() endif()
endif() endif()
@@ -227,6 +227,9 @@ if (${RESINSIGHT_USE_HDF5})
add_definitions(-DUSE_HDF5) add_definitions(-DUSE_HDF5)
endif() endif()
# make variable available to parent scope
set(RESINSIGHT_USE_HDF5 ${RESINSIGHT_USE_HDF5} PARENT_SCOPE)
############################################################################# #############################################################################
# Qt specifics: Moc, ui, resources # Qt specifics: Moc, ui, resources
############################################################################# #############################################################################