Permalink
Browse files

Append -D to COMPILE_DEFINITIONS passed to add_hpx_config_test

  • Loading branch information...
Naios committed Jun 24, 2017
1 parent bcf25f4 commit 880cfb77f6f122c42f8834051c43e03dac94777e
Showing with 1 addition and 2 deletions.
  1. +1 −2 cmake/HPX_AddConfigTest.cmake
@@ -47,7 +47,7 @@ macro(add_hpx_config_test variable)
set(COMPILE_DEFINITIONS_TMP)
set(CONFIG_TEST_COMPILE_DEFINITIONS)
get_directory_property(COMPILE_DEFINITIONS_TMP COMPILE_DEFINITIONS)
foreach(def ${COMPILE_DEFINITIONS_TMP})
foreach(def IN LISTS COMPILE_DEFINITIONS_TMP ${variable}_COMPILE_DEFINITIONS)
set(CONFIG_TEST_COMPILE_DEFINITIONS "${CONFIG_TEST_COMPILE_DEFINITIONS} -D${def}")
endforeach()
get_property(HPX_TARGET_COMPILE_OPTIONS_VAR GLOBAL PROPERTY HPX_TARGET_COMPILE_OPTIONS)
@@ -60,7 +60,6 @@ macro(add_hpx_config_test variable)
set(CONFIG_TEST_INCLUDE_DIRS ${CONFIG_TEST_INCLUDE_DIRS} ${${variable}_INCLUDE_DIRECTORIES})
set(CONFIG_TEST_LINK_DIRS ${CONFIG_TEST_LINK_DIRS} ${${variable}_LINK_DIRECTORIES})
set(CONFIG_TEST_COMPILE_DEFINITIONS ${CONFIG_TEST_COMPILE_DEFINITIONS} ${${variable}_COMPILE_DEFINITIONS})
set(CONFIG_TEST_LINK_LIBRARIES ${HPX_LIBRARIES} ${${variable}_LIBRARIES})
if(${variable}_EXECUTE)

0 comments on commit 880cfb7

Please sign in to comment.