Skip to content
Permalink
Browse files

Fix cmake policy CMP0023 warning, and remove an old-cmake workaround

  • Loading branch information...
nico committed Jan 14, 2018
1 parent 1652ad7 commit 59a49841ff4d3d45907a644ee57732baa22a5b44
Showing with 2 additions and 1 deletion.
  1. +1 −1 CMakeLists.txt
  2. +1 −0 tools/driver/CMakeLists.txt
@@ -126,7 +126,7 @@ macro(add_gong_library name)
llvm_add_library(${name} ${ARG_UNPARSED_ARGUMENTS} ${srcs})

if(TARGET ${name})
target_link_libraries(${name} ${cmake_2_8_12_INTERFACE} ${LLVM_COMMON_LIBS})
target_link_libraries(${name} INTERFACE ${LLVM_COMMON_LIBS})
set_property(GLOBAL APPEND PROPERTY GONG_EXPORTS ${name})
else()
# Add empty "phony" target
@@ -21,6 +21,7 @@ add_gong_executable(gong
)

target_link_libraries(gong
PRIVATE
gongBasic
gongFrontend
)

0 comments on commit 59a4984

Please sign in to comment.
You can’t perform that action at this time.