I would like to disable building applications from the top level CMakeLists.txt file. I can disable BUILD_APPS from the command line, by issuing the following command:
cmake -Wno-dev -DBUILD_APPS:BOOL=OFF -G "Unix Makefiles" ../latest_dcmtk
How do I configure the BUILD_APPS parameter from the top-level CMakeLists.txt file to turn off building applications?
disabling BUILD_APPS from top level CMakeLists.txt file
Moderator: Moderator Team
-
- DCMTK Developer
- Posts: 2051
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Re: disabling BUILD_APPS from top level CMakeLists.txt file
Hi,
it works for me by adding in the top level CMakeLists.txt the line
just after
Best,
Michael
it works for me by adding in the top level CMakeLists.txt the line
Code: Select all
# Declare project
SET(BUILD_APPS OFF CACHE BOOL "" FORCE)
Code: Select all
# Check the build system
INCLUDE(CMake/dcmtkPrepare.cmake NO_POLICY_SCOPE)
Michael
Who is online
Users browsing this forum: No registered users and 1 guest