diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-06-19 15:35:55 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-06-19 15:35:55 (GMT) |
commit | 562cd7f3ab9fc929cda5772e61195c4ffcff88c0 (patch) | |
tree | 365e2d3efbfd0aa81e6fd76fcd544f2cfabfbe53 /fortran | |
parent | 2051ee911829cdab9311a2d6b062cb9f10d7c5b1 (diff) | |
download | hdf5-562cd7f3ab9fc929cda5772e61195c4ffcff88c0.zip hdf5-562cd7f3ab9fc929cda5772e61195c4ffcff88c0.tar.gz hdf5-562cd7f3ab9fc929cda5772e61195c4ffcff88c0.tar.bz2 |
Cleanup possible CMake target conflicts
Diffstat (limited to 'fortran')
-rw-r--r-- | fortran/test/CMakeLists.txt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/fortran/test/CMakeLists.txt b/fortran/test/CMakeLists.txt index 3f049af..738638a 100644 --- a/fortran/test/CMakeLists.txt +++ b/fortran/test/CMakeLists.txt @@ -31,13 +31,12 @@ set_target_properties (H5_test_buildiface PROPERTIES Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY} ) -if (BUILD_SHARED_LIBS) - file (MAKE_DIRECTORY "${HDF5_FORTRAN_TESTS_BINARY_DIR}/shared") - set (MODSH_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/shared/${HDF_CFG_BUILD_TYPE}) -endif () -if (NOT ONLY_SHARED_LIBS) +if (NOT BUILD_SHARED_LIBS) file (MAKE_DIRECTORY "${HDF5_FORTRAN_TESTS_BINARY_DIR}/static") set (MOD_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/static/${HDF_CFG_BUILD_TYPE}) +else () + file (MAKE_DIRECTORY "${HDF5_FORTRAN_TESTS_BINARY_DIR}/shared") + set (MODSH_BUILD_DIR ${CMAKE_Fortran_MODULE_DIRECTORY}/shared/${HDF_CFG_BUILD_TYPE}) endif () #----------------------------------------------------------------------------- |