Skip to content
Snippets Groups Projects
Commit a44ef3a6 authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Added flag -c to only compile header, ignoring linking.

parent 524b7408
No related branches found
No related tags found
No related merge requests found
...@@ -34,5 +34,3 @@ endif() ...@@ -34,5 +34,3 @@ endif()
include(${PROJECT_SOURCE_DIR}/scripts/cmake/packaging/InstallXmlSchemaFiles.cmake) include(${PROJECT_SOURCE_DIR}/scripts/cmake/packaging/InstallXmlSchemaFiles.cmake)
InstallXmlSchemaFiles("IO/XmlIO/*.xsd") InstallXmlSchemaFiles("IO/XmlIO/*.xsd")
#check_header_compilation(GeoLib)
# Supply include directories and compiler flags # Supply include directories and compiler flags
get_directory_property(INCLUDE_DIRS INCLUDE_DIRECTORIES) get_directory_property(INCLUDE_DIRS INCLUDE_DIRECTORIES)
set(CMAKE_REQUIRED_FLAGS "-std=gnu++14") set(CMAKE_REQUIRED_FLAGS "-c -std=gnu++14")
set(CMAKE_REQUIRED_QUIET TRUE) set(CMAKE_REQUIRED_QUIET TRUE)
# Checks header for standalone compilation # Checks header for standalone compilation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment