File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ if(APPLE)
115
115
target_link_libraries (platform_ui_adapter PUBLIC "-framework CoreVideo" )
116
116
endif ()
117
117
target_include_directories (
118
- platform_ui_adapter PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
118
+ platform_ui_adapter PUBLIC $<BUILD_INTERFACE: $ {CMAKE_CURRENT_SOURCE_DIR}>
119
119
$<TARGET_PROPERTY:glfw,INTERFACE_INCLUDE_DIRECTORIES >
120
120
)
121
121
target_link_libraries (platform_ui_adapter PUBLIC mujoco::mujoco)
@@ -140,7 +140,7 @@ target_sources(
140
140
array_safety.h
141
141
PRIVATE simulate.cc
142
142
)
143
- target_include_directories (libmujoco_simulate PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} )
143
+ target_include_directories (libmujoco_simulate PUBLIC $<BUILD_INTERFACE: $ {CMAKE_CURRENT_SOURCE_DIR}> )
144
144
target_compile_options (libmujoco_simulate PRIVATE ${MUJOCO_SIMULATE_COMPILE_OPTIONS} )
145
145
target_link_libraries (libmujoco_simulate PUBLIC lodepng mujoco::platform_ui_adapter mujoco::mujoco)
146
146
target_link_options (libmujoco_simulate PRIVATE ${MUJOCO_SIMULATE_LINK_OPTIONS} )
@@ -308,6 +308,5 @@ if(SIMULATE_BUILD_EXECUTABLE)
308
308
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR} " COMPONENT simulate
309
309
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR} /simulate" COMPONENT simulate
310
310
)
311
- endif ()
312
311
endif ()
313
312
endif ()
You can’t perform that action at this time.
0 commit comments