File tree Expand file tree Collapse file tree 3 files changed +5
-18
lines changed Expand file tree Collapse file tree 3 files changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,9 @@ add_library(simdjson-headers INTERFACE)
8
8
target_compile_features (simdjson-headers INTERFACE cxx_std_11) # headers require at least C++11
9
9
target_include_directories (simdjson-headers INTERFACE
10
10
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} >
11
- $<INSTALL_INTERFACE:include / >)
11
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCDIR} >)
12
12
13
- install (TARGETS simdjson-headers
14
- EXPORT simdjson-config
15
- INCLUDES DESTINATION include )
13
+ install (TARGETS simdjson-headers EXPORT simdjson-config INCLUDES DESTINATION include )
16
14
install (DIRECTORY simdjson DESTINATION include FILES_MATCHING PATTERN *.h)
17
15
install (DIRECTORY simdjson DESTINATION include FILES_MATCHING PATTERN *.hpp)
18
16
install (FILES simdjson.h DESTINATION include )
Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ endif()
80
80
81
81
option (SIMDJSON_SANITIZE "Sanitize addresses" OFF )
82
82
if (SIMDJSON_SANITIZE)
83
- # Not sure which
84
83
target_compile_options (simdjson-flags INTERFACE -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=all )
85
84
target_link_libraries (simdjson-flags INTERFACE -fsanitize=address -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=all )
86
85
@@ -105,14 +104,4 @@ if(${CMAKE_C_COMPILER_ID} MATCHES "Intel") # icc / icpc
105
104
set (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-intel" )
106
105
endif ()
107
106
108
- # Workaround for https://gitlab.kitware.com/cmake/cmake/issues/15415#note_633938:
109
- function (export_private_library NAME )
110
- install (TARGETS ${NAME}
111
- EXPORT simdjson-config
112
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
113
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
114
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
115
- )
116
- endfunction ()
117
-
118
- export_private_library(simdjson-flags )
107
+ install (TARGETS simdjson-flags EXPORT simdjson-config)
Original file line number Diff line number Diff line change 8
8
add_library (simdjson-include -source INTERFACE )
9
9
target_link_libraries (simdjson-include -source INTERFACE simdjson-headers)
10
10
target_include_directories (simdjson-include -source INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} >)
11
- export_private_library( simdjson-include -source )
11
+ install (TARGETS simdjson-include -source EXPORT simdjson-config )
12
12
13
13
#
14
14
# For callers who intend to compile simdjson.cpp themselves.
@@ -19,7 +19,7 @@ export_private_library(simdjson-include-source)
19
19
add_library (simdjson-source INTERFACE )
20
20
target_sources (simdjson-source INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} >/simdjson.cpp)
21
21
target_link_libraries (simdjson-source INTERFACE simdjson-include -source )
22
- export_private_library( simdjson-source )
22
+ install (TARGETS simdjson-source EXPORT simdjson-config )
23
23
24
24
#
25
25
# simdjson is the distributed library compiled with flags.
You can’t perform that action at this time.
0 commit comments