We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
include
1 parent 5431b9d commit 71f746cCopy full SHA for 71f746c
src/CMakeLists.txt
@@ -31,7 +31,9 @@ endif()
31
get_target_property(use_pic secp256k1 POSITION_INDEPENDENT_CODE)
32
set_target_properties(secp256k1_precomputed PROPERTIES POSITION_INDEPENDENT_CODE ${use_pic})
33
34
-target_include_directories(secp256k1 PUBLIC
+target_include_directories(secp256k1 INTERFACE
35
+ # Add the include path for parent projects so that they don't have to manually add it.
36
+ $<BUILD_INTERFACE:$<$<NOT:$<BOOL:${PROJECT_IS_TOP_LEVEL}>>:${PROJECT_SOURCE_DIR}/include>>
37
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
38
)
39
set_target_properties(secp256k1 PROPERTIES
0 commit comments