-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Code to set CMake policy 0148
Signed-off-by: Michael Jackson <[email protected]>
- Loading branch information
1 parent
c33ea83
commit d79d010
Showing
2 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# ------------------------------------------------------------------------------ | ||
# Required EbsdLib and H5Support | ||
# ------------------------------------------------------------------------------ | ||
|
||
if(SIMPLNX_BUILD_EBSDLIB) | ||
find_package(H5Support REQUIRED) | ||
find_package(EbsdLib REQUIRED) | ||
else() | ||
|
||
if(NOT TARGET EbsdLib::EbsdLib) | ||
|
||
if(EXISTS "${simplnx_SOURCE_DIR}/../EbsdLib") | ||
set(EbsdLibProj_SOURCE_DIR "${simplnx_SOURCE_DIR}/../EbsdLib") | ||
else() | ||
message(FATAL_ERROR "EbsdLibProj_SOURCE_DIR was not set. Where is the EbsdLib project directory. Please set the EbsdLibProj_SOURCE_DIR variable to the EbsdLib directory.") | ||
endif() | ||
message(STATUS "EbsdLibProj_SOURCE_DIR: ${EbsdLibProj_SOURCE_DIR}") | ||
|
||
set(EbsdLib_ENABLE_HDF5 ON) | ||
set(EbsdLib_USE_PARALLEL_ALGORITHMS ${SIMPLNX_ENABLE_MULTICORE}) | ||
set(EbsdLib_BUILD_H5SUPPORT ON) | ||
set(H5Support_INCLUDE_QT_API OFF) | ||
add_subdirectory( ${EbsdLibProj_SOURCE_DIR} ${PROJECT_BINARY_DIR}/EbsdLib) | ||
endif() | ||
endif() | ||
|