We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fb6227 commit d9e488dCopy full SHA for d9e488d
1 file changed
src/examples/CMakeLists.txt
@@ -36,11 +36,15 @@ else()
36
endif()
37
38
macro(build_example exe_name)
39
- set (additional_targets ${ARGN})
+ set(additional_targets ${ARGN})
40
add_executable(${exe_name} ${exe_name}.cpp)
41
42
if(STANDALONE_PROJECT)
43
- target_link_libraries(${exe_name} IfcOpenShell::IfcParse $<$<BOOL:${additional_targets}>:IfcOpenShell::${additional_targets}>)
+ target_link_libraries(
44
+ ${exe_name}
45
+ IfcOpenShell::IfcParse
46
+ $<$<BOOL:${additional_targets}>:IfcOpenShell::${additional_targets}>
47
+ )
48
else()
49
target_include_directories(${exe_name} PRIVATE "${CMAKE_SOURCE_DIR}/../src")
50
target_link_libraries(${exe_name} IfcParse ${additional_targets})
0 commit comments