diff --git a/src/dft/CMakeLists.txt b/src/dft/CMakeLists.txt index df27eaa2..1b99089c 100644 --- a/src/dft/CMakeLists.txt +++ b/src/dft/CMakeLists.txt @@ -351,5 +351,9 @@ set_target_properties(${TARGET_LIBDFT} PROPERTIES # Install +target_compile_definitions(${TARGET_LIBDFT} + PUBLIC ${COMMON_TARGET_DEFINITIONS} +) + install(FILES ${PROJECT_SOURCE_DIR}/include/sleefdft.h DESTINATION include) install(TARGETS ${TARGET_LIBDFT} DESTINATION lib) diff --git a/src/libm/CMakeLists.txt b/src/libm/CMakeLists.txt index 4b26e36d..dbab8934 100644 --- a/src/libm/CMakeLists.txt +++ b/src/libm/CMakeLists.txt @@ -184,14 +184,14 @@ set_target_properties(${TARGET_LIBSLEEF} PROPERTIES ) target_compile_definitions(${TARGET_LIBSLEEF} - PRIVATE DORENAME=1 ${COMMON_TARGET_DEFINITIONS} + PRIVATE DORENAME=1 PUBLIC ${COMMON_TARGET_DEFINITIONS} ) if(COMPILER_SUPPORTS_FLOAT128) # TODO: Not supported for LLVM bitcode gen as it has a specific compilation flags target_sources(${TARGET_LIBSLEEF} PRIVATE sleefqp.c) target_compile_definitions(${TARGET_LIBSLEEF} - PRIVATE ENABLEFLOAT128=1 ${COMMON_TARGET_DEFINITIONS}) + PUBLIC ENABLEFLOAT128=1) endif() if(COMPILER_SUPPORTS_BUILTIN_MATH)