Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
Power System Simulation and Optimization
DPsim
DPsim
Commits
a5560a57
Commit
a5560a57
authored
Jul 17, 2019
by
Steffen Vogel
🎅🏼
Committed by
Markus Mirz
Feb 08, 2020
Browse files
cmake: use cmake_dependent_option() to avoid caching issues
parent
7334b2ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
a5560a57
...
...
@@ -80,17 +80,19 @@ if("${CMAKE_SYSTEM}" MATCHES "Linux")
endif
()
# Options
include
(
CMakeDependentOption
)
option
(
BUILD_SHARED_LIBS
"Build shared library"
OFF
)
option
(
BUILD_EXAMPLES
"Build C++ examples"
ON
)
option
(
COMPARE_REFERENCE
"Download reference results and compare"
OFF
)
option
(
WITH_GSL
"Enable GSL"
${
GSL_FOUND
}
)
option
(
WITH_SUNDIALS
"Enable sundials solver suite"
${
Sundials_FOUND
}
)
option
(
WITH_SHMEM
"Enable shared memory interface"
${
VILLASnode_FOUND
}
)
option
(
WITH_RT
"Enable real-time features"
${
Linux_FOUND
}
)
option
(
WITH_PYTHON
"Enable Python support"
${
Python_FOUND
}
)
option
(
WITH_CIM
"Enable support for parsing CIM files"
${
CIMpp_FOUND
}
)
option
(
WITH_OPENMP
"Enable OpenMP-based parallelisation"
${
OPENMP_FOUND
}
)
cmake_dependent_
option
(
WITH_GSL
"Enable GSL"
ON
"
GSL_FOUND
"
OFF
)
cmake_dependent_
option
(
WITH_SUNDIALS
"Enable sundials solver suite"
ON
"
Sundials_FOUND
"
OFF
)
cmake_dependent_
option
(
WITH_SHMEM
"Enable shared memory interface"
ON
"
VILLASnode_FOUND
"
OFF
)
cmake_dependent_
option
(
WITH_RT
"Enable real-time features"
ON
"
Linux_FOUND
"
OFF
)
cmake_dependent_
option
(
WITH_PYTHON
"Enable Python support"
ON
"
Python_FOUND
"
OFF
)
cmake_dependent_
option
(
WITH_CIM
"Enable support for parsing CIM files"
ON
"
CIMpp_FOUND
"
OFF
)
cmake_dependent_
option
(
WITH_OPENMP
"Enable OpenMP-based parallelisation"
ON
"
OPENMP_FOUND
"
OFF
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/Include/dpsim/Config.h.in
...
...
Steffen Vogel
🎅🏼
@stvogel
mentioned in commit
aa9a72b4
·
Feb 13, 2020
mentioned in commit
aa9a72b4
mentioned in commit aa9a72b41fb25bb7254cfe17a2393e8cfa83f686
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment