Unverified Commit c6358cb0 authored by Stephan Lachnit's avatar Stephan Lachnit
Browse files

CMake: Make ENABLE_LANGUAGE(C) global

parent 206d768c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -130,6 +130,9 @@ ENDIF()
# Enable CXX as project language to perform compiler checks:
ENABLE_LANGUAGE(CXX)

# Fix for CMake when Geant4 has HDF5 / VTK enabled
ENABLE_LANGUAGE(C)

# Additional packages to be searched for by cmake
LIST(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)

+0 −3
Original line number Diff line number Diff line
@@ -55,9 +55,6 @@ INSTALL(

ADD_DEFINITIONS(-DALLPIX_CRY_DATA_DIRECTORY="${CRY_DATA_DIRECTORY}")

# Required for CMake when Geant4 has HDF5 enabled
ENABLE_LANGUAGE(C)

# Geant4 is required for geometry description and charge deposition.
FIND_PACKAGE(Geant4)
IF(NOT Geant4_FOUND)
+0 −3
Original line number Diff line number Diff line
@@ -4,9 +4,6 @@
# Define module
ALLPIX_UNIQUE_MODULE(MODULE_NAME)

# Required for CMake when Geant4 has HDF5 enabled
ENABLE_LANGUAGE(C)

# Geant4 is required for geometry description and charge deposition.
FIND_PACKAGE(Geant4)
IF(NOT Geant4_FOUND)