-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cmakeupdates #46
Open
sjunges
wants to merge
23
commits into
moves-rwth:master
Choose a base branch
from
sjunges:cmakeupdates
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+133
−3,461
Open
Cmakeupdates #46
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
cce6210
remove some irrelevant tests
sjunges 343df83
typetraits.h specifies it should not be included directly, so lets no…
sjunges 702cb66
updates regarding logging (use a more descriptive ifdef to avoid dupl…
sjunges 12c9bdb
remove cad
sjunges 8f4a187
avoid code that cannot compile
sjunges 05ae723
fix ordering for polynomials to GrLexOrdering, thereby paving the way…
sjunges 6ee4b6c
version includes patch versions now, update to version 14.24.0
sjunges 8320577
Merge branch 'master' of https://github.com/moves-rwth/carl-storm
sjunges 8f6ed12
Merge branch 'master' of https://github.com/moves-rwth/carl-storm
sjunges 63d3461
Merge branch 'master' of https://github.com/moves-rwth/carl-storm
sjunges 8104453
Merge branch 'master' of https://github.com/moves-rwth/carl-storm
sjunges b1b5da1
Merge branch 'master' of https://github.com/moves-rwth/carl-storm
sjunges 0753294
fixes https://github.com/moves-rwth/carl-storm/issues/27
sjunges deb591d
move ifdef up
sjunges 6b6b9a1
cmake to project
sjunges d493e43
Merge branch 'master' of https://github.com/moves-rwth/carl-storm
sjunges 73e5394
towards carl for fetchcontent
sjunges eaaffc7
updates
sjunges 8ec7070
Merge branch 'master' of https://github.com/moves-rwth/carl-storm
sjunges 7cc22f7
Merge branch 'master' into cmakeupdates
sjunges e1f43a2
updates regarding ginac and what we install
sjunges f7c20b8
remove comment
sjunges c25b8ac
Added carl prefix to more messages
volkm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ set( PROJECT_DESCRIPTION "Computer ARithmetic Library") | |
set( carl_NAME "CArL" ) | ||
set( carl_DESCRIPTION ${PROJECT_DESCRIPTION} ) | ||
|
||
message(STATUS "Version: ${PROJECT_FULLNAME} ${PROJECT_VERSION_FULL}") | ||
message(STATUS "carl - Version: ${PROJECT_FULLNAME} ${PROJECT_VERSION_FULL}") | ||
|
||
# # # # # # # # # # # # # # # # # # # # # # | ||
# B. Options | ||
|
@@ -63,7 +63,6 @@ option( USE_BLISS "Use bliss" OFF ) | |
export_option(USE_BLISS) | ||
OPTION( USE_MPFR_FLOAT "Use the mpfr implementation of floating point numbers." OFF ) | ||
export_option(USE_MPFR_FLOAT) | ||
option( USE_COTIRE "Use cotire to generate and use precompiled headers" OFF ) | ||
option( PORTABLE "Enable portable build without hardware-specific compiler flags." OFF) | ||
export_option(PORTABLE) | ||
option( BUILD_STATIC "Build the static library as well" OFF ) | ||
|
@@ -76,40 +75,46 @@ option( PRUNE_MONOMIAL_POOL "Prune monomial pool" ON ) | |
option( EXCLUDE_TESTS_FROM_ALL "If set, tests will not be compiled by default" OFF ) | ||
export_option(EXCLUDE_TESTS_FROM_ALL) | ||
|
||
option( CARL_COMPILE_RELEASE "Compile in Release mode irrespectively of CMAKE_BUILD_TYPE" OFF) | ||
option (CARL_COMPILE_BENCHMARKS "Compile Benchmarks" OFF) | ||
|
||
set(CLANG_SANITIZER "none" CACHE STRING "Compile with the respective sanitizer") | ||
set_property(CACHE CLANG_SANITIZER PROPERTY STRINGS none address memory thread) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
if (NOT CMAKE_BUILD_TYPE) | ||
if (PROJECT_IS_TOP_LEVEL) | ||
set(CMAKE_BUILD_TYPE "RELEASE" CACHE STRING "Build type." FORCE) | ||
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "DEBUG" "RELEASE") | ||
endif() | ||
|
||
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "DEBUG" "RELEASE") | ||
|
||
set(CARL_LIBRARIES_DIR "${PROJECT_BINARY_DIR}/lib") | ||
|
||
# Offer the user the choice of overriding the installation directories | ||
set(INCLUDE_INSTALL_DIR include/ CACHE PATH "Installation directory for header files" ) | ||
set(LIB_INSTALL_DIR lib/ CACHE PATH "Installation directory for libraries") | ||
#set(SYSCONFIG_INSTALL_DIR etc/carl/ CACHE PATH "Installation for system configuration files) | ||
set(BIN_INSTALL_DIR lib/ CACHE PATH "Installation directory for executables") | ||
set(CARL_INCLUDE_INSTALL_DIR include/ CACHE PATH "Installation directory for header files" ) | ||
set(CARL_LIB_INSTALL_DIR lib/ CACHE PATH "Installation directory for libraries") | ||
set(CARL_BIN_INSTALL_DIR bin/ CACHE PATH "Installation directory for executables") | ||
set(CARL_CMAKE_INSTALL_DIR lib/cmake/ CACHE PATH "Installation directory for executables") | ||
|
||
|
||
|
||
if(WIN32 AND NOT CYGWIN) | ||
set(DEF_INSTALL_CMAKE_DIR CMake) | ||
else() | ||
set(DEF_INSTALL_CMAKE_DIR lib/cmake/carl) | ||
endif() | ||
set(CMAKE_INSTALL_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH "Installation directory for CMake files") | ||
if (PROJECT_IS_TOP_LEVEL) | ||
set(CMAKE_INSTALL_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH "Installation directory for CMake files") | ||
endif() | ||
|
||
if(APPLE AND ${CMAKE_SYSTEM_PROCESSOR} MATCHES arm64) | ||
message(STATUS "Detected that target system uses Apple Silicon.") | ||
message(WARNING "Compiling natively on Apple Silicon is experimental. Please report issues to [email protected]. For more information visit https://www.stormchecker.org/documentation/obtain-storm/apple-silicon.html") | ||
message(STATUS "carl - Detected that target system uses Apple Silicon.") | ||
message(WARNING "carl - Compiling natively on Apple Silicon is experimental. Please report issues to [email protected]. For more information visit https://www.stormchecker.org/documentation/obtain-storm/apple-silicon.html") | ||
set(APPLE_SILICON 1) | ||
endif() | ||
|
||
foreach(p LIB BIN INCLUDE CMAKE) | ||
set(var ${p}_INSTALL_DIR) | ||
set(var CARL_${p}_INSTALL_DIR) | ||
if(NOT IS_ABSOLUTE "${${var}}") | ||
set(${var} "${CMAKE_INSTALL_PREFIX}/${${var}}") | ||
endif() | ||
|
@@ -131,16 +136,14 @@ elseif (WIN32) | |
endif() | ||
|
||
if(BUILD_STATIC) | ||
message(STATUS "Building static: yes") | ||
message(STATUS "carl - Building static: yes") | ||
if (LOGGING) | ||
message(WARNING "A static build with logging enabled will probably trigger a segfault!") | ||
message(WARNING "carl - A static build with logging enabled will probably trigger a segfault!") | ||
endif() | ||
else() | ||
message(STATUS "Building static: no") | ||
message(STATUS "carl - Building static: no") | ||
endif() | ||
|
||
include(cotire) | ||
|
||
# RPATH settings | ||
# don't skip the full RPATH for the build tree | ||
SET(CMAKE_SKIP_BUILD_RPATH FALSE) | ||
|
@@ -168,18 +171,19 @@ SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) | |
include(resources/resources.cmake) | ||
|
||
# we only search for this libraries in the system, if we do not force using the shipped resources. | ||
|
||
enable_testing() | ||
if(PROJECT_IS_TOP_LEVEL) | ||
enable_testing() | ||
include(coverage) | ||
endif() | ||
|
||
#dl must be linked LAST as this is required for the stacktrace in util/platform.h | ||
if (NOT WIN32) | ||
list(APPEND carl_LIBRARIES_DYNAMIC pthread dl) | ||
endif() | ||
|
||
include(clang-tidy) | ||
include(coverage) | ||
|
||
if (TARGET Doxygen::doxygen) | ||
if (TARGET Doxygen::doxygen AND PROJECT_IS_TOP_LEVEL) | ||
include(clang-tidy) | ||
include(resources/doc-resources.cmake) | ||
add_subdirectory(doxygen-conf) | ||
endif() | ||
add_subdirectory(src) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need a separate flag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is actually not advised to do, but it would allow you to compile carl in release mode while compiling storm in debug mode (or vice versa), when carl is a subproject.
I am also happy not to support that :-D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, just wanted to confirm that my understanding is correct.
I would be in favour of removing it, because in most cases one would like to have both with the same build type. If different build types are needed, one can still manually build carl.
(The flag is currently also not used anywhere as far as I can see.)