Skip to content

Commit 1ab1448

Browse files
committed
build: use target_include_directories (NFC)
Use `target_include_directories` rather than `target_compile_options` This should be entirely equivalent. NFCI.
1 parent e3fe2b5 commit 1ab1448

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@ set_target_properties(uuid
6363
POSITION_INDEPENDENT_CODE YES)
6464
# Add an include directory for the CoreFoundation framework headers to satisfy
6565
# the dependency on TargetConditionals.h
66-
target_compile_options(uuid
67-
PUBLIC
68-
-I${CMAKE_CURRENT_BINARY_DIR}/CoreFoundation.framework/Headers)
66+
target_include_directories(uuid PUBLIC
67+
${CMAKE_CURRENT_BINARY_DIR}/CoreFoundation.framework/Headers)
6968
if(CMAKE_SYSTEM_NAME STREQUAL Windows)
7069
target_compile_definitions(uuid
7170
PRIVATE

0 commit comments

Comments
 (0)