Skip to content

Commit 62c01ef

Browse files
committed
Should fix macOS
1 parent c39c2a9 commit 62c01ef

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Framework/cmake/SetupSources.cmake

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set(FRAMEWORK_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/Source/" "${CMAKE_SOURCE_DIR}/Fr
77
"${CMAKE_SOURCE_DIR}/Framework/Modules/CLIParser/ThirdParty/UntitledCLIParser/ThirdParty/"
88
"${CMAKE_SOURCE_DIR}/Framework/ThirdParty/vulkan-headers/include" "${CMAKE_SOURCE_DIR}/Framework/ThirdParty/"
99
"${CMAKE_SOURCE_DIR}/Framework/ThirdParty/source-libraries/cimgui/" ${YAML_CPP_INCLUDE_DIRS_T}
10-
${FREETYPE_INCLUDE_DIRS} "${CMAKE_SOURCE_DIR}/Framework/ThirdParty/glad/include/")
10+
${FREETYPE_INCLUDE_DIRS})
1111

1212
if (USE_KNOBS_MODULE)
1313
list(APPEND FRAMEWORK_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/Framework/Modules/Knobs/ThirdParty/imgui-knobs/")
@@ -18,9 +18,13 @@ if (USE_TOGGLES_MODULE)
1818
endif ()
1919

2020
if (USE_SPINNER_MODULE)
21-
list (APPEND FRAMEWORK_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/Framework/Modules/Spinners/ThirdParty/imspinner/")
21+
list(APPEND FRAMEWORK_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/Framework/Modules/Spinners/ThirdParty/imspinner/")
2222
endif ()
2323

24+
if (NOT APPLE)
25+
list(APPEND FRAMEWORK_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/Framework/ThirdParty/glad/include/")
26+
endif()
27+
2428
include_directories(${FRAMEWORK_INCLUDE_DIRS})
2529
if (DEFINED PLUGIN_PREFIX)
2630
set(FRAMEWORK_INCLUDE_DIRS ${FRAMEWORK_INCLUDE_DIRS} PARENT_SCOPE) # Define once for parent and once for child

0 commit comments

Comments
 (0)