Skip to content

Commit 7509049

Browse files
authored
Fix compatibility with CMake < 3.14 (#223)
`NAME_WLE` was introduced in 3.14
1 parent 4f9e645 commit 7509049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ endif()
88

99
file(GLOB CORE_RUN_FILES "core/run/*.cpp")
1010
foreach (testsourcefile ${CORE_RUN_FILES})
11-
get_filename_component(testname ${testsourcefile} NAME_WLE)
11+
get_filename_component(testname ${testsourcefile} NAME_WE)
1212
add_executable(pfr_core_${testname} ${testsourcefile})
1313
target_link_libraries(pfr_core_${testname} Boost::pfr Boost::core Boost::container_hash)
1414
target_include_directories(pfr_core_${testname} PRIVATE ../../../)
@@ -18,7 +18,7 @@ endforeach()
1818

1919
file(GLOB CORE_NAME_RUN_FILES "core_name/run/*.cpp")
2020
foreach (testsourcefile ${CORE_NAME_RUN_FILES})
21-
get_filename_component(testname ${testsourcefile} NAME_WLE)
21+
get_filename_component(testname ${testsourcefile} NAME_WE)
2222
add_executable(pfr_corename_${testname} ${testsourcefile})
2323
target_compile_features(pfr_corename_${testname} PUBLIC cxx_std_20)
2424
target_link_libraries(pfr_corename_${testname} Boost::pfr Boost::core Boost::container_hash)

0 commit comments

Comments
 (0)