summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExportCompileCommands/CustomCompileRule.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/ExportCompileCommands/CustomCompileRule.cmake')
-rw-r--r--Tests/RunCMake/ExportCompileCommands/CustomCompileRule.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/RunCMake/ExportCompileCommands/CustomCompileRule.cmake b/Tests/RunCMake/ExportCompileCommands/CustomCompileRule.cmake
index 12368a2..b1b120f 100644
--- a/Tests/RunCMake/ExportCompileCommands/CustomCompileRule.cmake
+++ b/Tests/RunCMake/ExportCompileCommands/CustomCompileRule.cmake
@@ -1,5 +1,6 @@
enable_language(C)
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_library(empty STATIC empty.c)
string(REPLACE "<DEFINES>" "" CMAKE_C_COMPILE_OBJECT "${CMAKE_C_COMPILE_OBJECT}")
string(REPLACE "<INCLUDES>" "" CMAKE_C_COMPILE_OBJECT "${CMAKE_C_COMPILE_OBJECT}")
-set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+string(REPLACE "<FLAGS>" "" CMAKE_C_COMPILE_OBJECT "${CMAKE_C_COMPILE_OBJECT}")