Skip to content

Commit

Permalink
remove unused cmake logic
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jul 31, 2024
1 parent 558ef20 commit 05450c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ target_link_libraries(hwm14::hwm_ifc INTERFACE hwm_ifc)

# --- tests

if(${PROJECT_NAME}_BUILD_TESTING)
if(hwm14_BUILD_TESTING)
add_executable(hwm14check test/checkhwm14.f90)
target_link_libraries(hwm14check PRIVATE hwm14)
add_test(NAME HWM14check COMMAND hwm14check)
Expand Down
11 changes: 1 addition & 10 deletions options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,7 @@ include(GNUInstallDirs)

message(STATUS "${PROJECT_NAME} ${PROJECT_VERSION} CMake ${CMAKE_VERSION} Toolchain ${CMAKE_TOOLCHAIN_FILE}")

if(CMAKE_VERSION VERSION_LESS 3.21)
get_property(not_top DIRECTORY PROPERTY PARENT_DIRECTORY)
if(not_top)
set(${PROJECT_NAME}_IS_TOP_LEVEL false)
else()
set(${PROJECT_NAME}_IS_TOP_LEVEL true)
endif()
endif()

option(${PROJECT_NAME}_BUILD_TESTING "Build tests" ${${PROJECT_NAME}_IS_TOP_LEVEL})
option(hwm14_BUILD_TESTING "Build tests" ${hwm14_IS_TOP_LEVEL})

# Necessary for shared library with Visual Studio / Windows oneAPI
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS true)

0 comments on commit 05450c6

Please sign in to comment.