diff --git a/CMakeLists.txt b/CMakeLists.txt index 29474ff2..10496cfa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,10 +3,7 @@ project (c-ray C) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin/) -if (DEFINED ENV{CRAY_EXPORT_CMDS}) - message(STATUS "Exporting compile commands") - set(CMAKE_EXPORT_COMPILE_COMMANDS ON) -endif() +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) message(STATUS "The C compiler is: ${CMAKE_C_COMPILER}") diff --git a/rebuild/debug b/rebuild/debug index 15f71c25..2573bc38 100755 --- a/rebuild/debug +++ b/rebuild/debug @@ -1,2 +1,2 @@ #!/bin/sh -CRAY_EXPORT_CMDS=1 cmake . -DCMAKE_BUILD_TYPE=Debug && make -j"$(nproc)" +cmake . -DCMAKE_BUILD_TYPE=Debug && make -j"$(nproc)" diff --git a/rebuild/release b/rebuild/release index 4d65c5d4..0cc621c8 100755 --- a/rebuild/release +++ b/rebuild/release @@ -1,2 +1,2 @@ #!/bin/sh -CRAY_EXPORT_CMDS=1 cmake . -DCMAKE_BUILD_TYPE=Release && make -j"$(nproc)" +cmake . -DCMAKE_BUILD_TYPE=Release && make -j"$(nproc)"