Skip to content

Commit aa281d1

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 43f91de commit aa281d1

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+
$<$<OR:$<COMPILE_LANGUAGE:ASM>,$<COMPILE_LANGUAGE:C>>:-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)