CMake: USE_CXX oughtn't restrict NOTCURSES_HEADERS

pull/2768/head
nick black 3 months ago
parent cb1244d3d4
commit d88f40b836
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -548,6 +548,23 @@ target_compile_options(notcurses++
-fPIC
)
target_compile_options(notcurses++-static
PRIVATE
${NCPP_COMPILE_OPTIONS}
-fPIE
)
target_compile_definitions(notcurses++
PUBLIC
${NCPP_COMPILE_DEFINITIONS_PUBLIC}
)
target_compile_definitions(notcurses++-static
PUBLIC
${NCPP_COMPILE_DEFINITIONS_PUBLIC}
)
endif()
target_compile_options(notcurses-core
PRIVATE
-fPIC
@ -568,22 +585,6 @@ target_compile_options(notcurses-static
-fPIE
)
target_compile_options(notcurses++-static
PRIVATE
${NCPP_COMPILE_OPTIONS}
-fPIE
)
target_compile_definitions(notcurses++
PUBLIC
${NCPP_COMPILE_DEFINITIONS_PUBLIC}
)
target_compile_definitions(notcurses++-static
PUBLIC
${NCPP_COMPILE_DEFINITIONS_PUBLIC}
)
file(GLOB NOTCURSES_HEADERS
CONFIGURE_DEPENDS
LIST_DIRECTORIES false
@ -599,7 +600,6 @@ file(GLOB NCPP_INTERNAL_HEADERS
CONFIGURE_DEPENDS
LIST_DIRECTORIES false
${PROJECT_SOURCE_DIR}/include/ncpp/internal/*.hh)
endif()
export(PACKAGE notcurses)

Loading…
Cancel
Save