Skip to content

Commit

Permalink
remove hack to explicitly look for cc variables and use gcc as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvan Sievers committed Aug 2, 2023
1 parent ec8a8a3 commit b413154
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@

cmake_minimum_required(VERSION 3.16)

# TODO: test if this is still needed on ony of the generators we care about.
# Select a default compiler because CMake does not respect the PATH environment variable for some generators,
# e.g. used by existing compute servers in Basel.
# See https://stackoverflow.com/a/45934279 and https://issues.fast-downward.org/issue1031 for details.
find_program(CMAKE_C_COMPILER NAMES $ENV{CC} cc gcc PATHS ENV PATH NO_DEFAULT_PATH)
find_program(CMAKE_CXX_COMPILER NAMES $ENV{CXX} c++ g++ PATHS ENV PATH NO_DEFAULT_PATH)

# Path containing custom CMake modules
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)
include(FastDownwardMacros)
Expand Down

0 comments on commit b413154

Please sign in to comment.