-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
142 additions
and
98 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
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
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
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 |
---|---|---|
@@ -1,3 +1,15 @@ | ||
# | ||
# Copyright by The HDF Group. | ||
# All rights reserved. | ||
# | ||
# This file is part of HDF5. The full HDF5 copyright notice, including | ||
# terms governing use, modification, and redistribution, is contained in | ||
# the COPYING file, which can be found at the root of the source code | ||
# distribution tree, or in https://www.hdfgroup.org/licenses. | ||
# If you do not have access to either file, you may request a copy from | ||
# [email protected]. | ||
# | ||
|
||
#------------------------------------------------------------------------------- | ||
macro (BASIC_SETTINGS varname) | ||
string (TOUPPER ${varname} EXAMPLE_PACKAGE_VARNAME) | ||
|
@@ -17,35 +29,7 @@ macro (BASIC_SETTINGS varname) | |
#----------------------------------------------------------------------------- | ||
# Setup output Directories | ||
#----------------------------------------------------------------------------- | ||
if (NOT ${EXAMPLE_PACKAGE_NAME}_EXTERNALLY_CONFIGURED) | ||
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY | ||
${PROJECT_BINARY_DIR}/bin CACHE PATH "Single Directory for all Executables." | ||
) | ||
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY | ||
${PROJECT_BINARY_DIR}/bin CACHE PATH "Single Directory for all Libraries" | ||
) | ||
set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY | ||
${PROJECT_BINARY_DIR}/bin CACHE PATH "Single Directory for all static libraries." | ||
) | ||
set (CMAKE_Fortran_MODULE_DIRECTORY | ||
${PROJECT_BINARY_DIR}/bin CACHE PATH "Single Directory for all fortran modules." | ||
) | ||
get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) | ||
if(_isMultiConfig) | ||
set (CMAKE_TEST_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}) | ||
set (CMAKE_PDB_OUTPUT_DIRECTORY | ||
${PROJECT_BINARY_DIR}/bin CACHE PATH "Single Directory for all pdb files." | ||
) | ||
else () | ||
set (CMAKE_TEST_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) | ||
endif () | ||
else () | ||
# if we are externally configured, but the project uses old cmake scripts | ||
# this may not be set | ||
if (NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY) | ||
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${EXECUTABLE_OUTPUT_PATH}) | ||
endif () | ||
endif () | ||
SET_HDF_OUTPUT_DIRS(${EXAMPLE_PACKAGE_NAME}) | ||
|
||
#----------------------------------------------------------------------------- | ||
# Option to use Shared/Static libs, default is static | ||
|
@@ -285,11 +269,6 @@ macro (HDF5_SUPPORT) | |
else () | ||
set (H5_LIB_TYPE STATIC) | ||
endif () | ||
|
||
#----------------------------------------------------------------------------- | ||
# Option to build filter examples | ||
#----------------------------------------------------------------------------- | ||
option (HDF_BUILD_FILTERS "Test filter support" OFF) | ||
endmacro () | ||
|
||
#------------------------------------------------------------------------------- | ||
|
Oops, something went wrong.