@@ -22,21 +22,21 @@ foreach( plugin ${GPU_INSTRUMENTATION_PASSES} )
2222 LLVMTransformUtils
2323 "$<$<PLATFORM_ID:Darwin>:-undefined dynamic_lookup>"
2424 )
25- # CMAKE_LIBRARY_OUTPUT_DIRECTORY is only set during the Python
26- # build. It is empty if building directly from the root
27- # CMakeLists.txt file. Therefore if not building from Python just
28- # use the default CMake shared lib path otherwise this causes a hard
29- # build error
30- if (DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY )
31- set_target_properties (${plugin} PROPERTIES
32- LIBRARY_OUTPUT_DIRECTORY
33- "${CMAKE_LIBRARY_OUTPUT_DIRECTORY} /../instrumentation" )
34- endif (DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY )
25+ # CMAKE_LIBRARY_OUTPUT_DIRECTORY is only set during the Python
26+ # build. It is empty if building directly from the root
27+ # CMakeLists.txt file. Therefore if not building from Python just
28+ # use the default CMake shared lib path otherwise this causes a hard
29+ # build error
30+ if (DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY )
31+ set_target_properties (${plugin} PROPERTIES
32+ LIBRARY_OUTPUT_DIRECTORY
33+ "${CMAKE_LIBRARY_OUTPUT_DIRECTORY} /../instrumentation" )
34+ endif (DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY )
3535
36- # This is set to -fvisibility=hidden in the top level CMake file
37- # which causes the llvmGetPassPluginInfo symbol to be hidden and
38- # an "entry point not found" error. Reset it just for this target
39- if (NOT MSVC )
40- target_compile_options (${plugin} PRIVATE -fvisibility=default -fno-rtti)
41- endif ()
36+ # This is set to -fvisibility=hidden in the top level CMake file
37+ # which causes the llvmGetPassPluginInfo symbol to be hidden and
38+ # an "entry point not found" error. Reset it just for this target
39+ if (NOT MSVC )
40+ target_compile_options (${plugin} PRIVATE -fvisibility=default -fno-rtti)
41+ endif ()
4242endforeach ()
0 commit comments