Skip to content

Commit 635169b

Browse files
committed
build: don't add C flags to RC files
This was adding a spurious `-I` to the compile flags which resulted in the output being placed incorrectly. Simply elide the flags for RC targets.
1 parent 92b59f3 commit 635169b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CoreFoundation/cmake/modules/CoreFoundationAddFramework.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function(add_framework NAME)
6363
endif()
6464
target_compile_options(${NAME}
6565
PRIVATE
66-
-I;${CMAKE_BINARY_DIR}/${NAME}.framework/PrivateHeaders)
66+
$<$<NOT:$<COMPILE_LANGUAGE:RC>>:-I;${CMAKE_BINARY_DIR}/${NAME}.framework/PrivateHeaders>)
6767
add_dependencies(${NAME} ${NAME}_POPULATE_HEADERS)
6868

6969
if(AF_FRAMEWORK_DIRECTORY)

0 commit comments

Comments
 (0)