Skip to content

Commit

Permalink
cmake: include ctest before detectoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
vicentebolea committed Oct 17, 2023
1 parent 4980f81 commit 4e4a3d0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ if((NOT BUILD_SHARED_LIBS) AND (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE))
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()

# Ctest creates BUILD_TESTING option and sets it to true by default
# Here we disable BUILD_TESTING option by default
set(BUILD_TESTING OFF CACHE BOOL "Build testing")
include(CTest)

adios_option(Blosc2 "Enable support for c-blosc-2 transforms" AUTO)
adios_option(BZip2 "Enable support for BZip2 transforms" AUTO)
Expand Down Expand Up @@ -292,12 +296,6 @@ if(MSVC AND BUILD_SHARED_LIBS AND ADIOS2_HAVE_HDF5)
add_definitions(-DH5_BUILT_AS_DYNAMIC_LIB=1)
endif()

# Ctest creates BUILD_TESTING option and sets it to true by default
# Here we disable BUILD_TESTING option by default
set(BUILD_TESTING OFF CACHE BOOL "Build testing")
include(CTest)
mark_as_advanced(BUILD_TESTING)

#------------------------------------------------------------------------------#
# Third party libraries
#------------------------------------------------------------------------------#
Expand Down

0 comments on commit 4e4a3d0

Please sign in to comment.