mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-09 23:16:00 -06:00
#1747 Build System : Make variable available to both current and parent scope
This commit is contained in:
parent
7e3e538a43
commit
acd7b4784d
@ -197,7 +197,7 @@ if(MSVC)
|
||||
${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}" )
|
||||
endif()
|
||||
else()
|
||||
@ -211,7 +211,7 @@ else()
|
||||
${HDF5_LIBRARIES}
|
||||
)
|
||||
|
||||
set(RESINSIGHT_USE_HDF5 1 PARENT_SCOPE)
|
||||
set(RESINSIGHT_USE_HDF5 1)
|
||||
message( STATUS "Using HDF5 libraries : ${HDF5_LIBRARIES}" )
|
||||
endif()
|
||||
endif()
|
||||
@ -227,6 +227,9 @@ if (${RESINSIGHT_USE_HDF5})
|
||||
add_definitions(-DUSE_HDF5)
|
||||
endif()
|
||||
|
||||
# make variable available to parent scope
|
||||
set(RESINSIGHT_USE_HDF5 ${RESINSIGHT_USE_HDF5} PARENT_SCOPE)
|
||||
|
||||
#############################################################################
|
||||
# Qt specifics: Moc, ui, resources
|
||||
#############################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user