Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
496cb0b9
Commit
496cb0b9
authored
Sep 07, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
last minute changes for building inside CCP4
parent
583cafa9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
CMakeLists.txt
+9
-3
No files found.
CMakeLists.txt
View file @
496cb0b9
...
@@ -26,7 +26,7 @@ if(MSVC)
...
@@ -26,7 +26,7 @@ if(MSVC)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/W4"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/W4"
)
endif
()
endif
()
# Build
shared libraries by default (not my cup of tea, but hey)
# Build
ing shared libraries?
option
(
BUILD_SHARED_LIBS
"Build a shared library instead of a static one"
OFF
)
option
(
BUILD_SHARED_LIBS
"Build a shared library instead of a static one"
OFF
)
# We do not want to write an export file for all our symbols...
# We do not want to write an export file for all our symbols...
...
@@ -41,6 +41,11 @@ if(BUILD_FOR_CCP4)
...
@@ -41,6 +41,11 @@ if(BUILD_FOR_CCP4)
list
(
APPEND CMAKE_MODULE_PATH
"$ENV{CCP4}"
)
list
(
APPEND CMAKE_MODULE_PATH
"$ENV{CCP4}"
)
list
(
APPEND CMAKE_PREFIX_PATH
"$ENV{CCP4}"
)
list
(
APPEND CMAKE_PREFIX_PATH
"$ENV{CCP4}"
)
set
(
CMAKE_INSTALL_PREFIX
"$ENV{CCP4}"
)
set
(
CMAKE_INSTALL_PREFIX
"$ENV{CCP4}"
)
# This is the only option:
if
(
WIN32
)
set
(
BUILD_SHARED_LIBS ON
)
endif
()
endif
(
"$ENV{CCP4}"
STREQUAL
""
OR NOT EXISTS $ENV{CCP4}
)
endif
(
"$ENV{CCP4}"
STREQUAL
""
OR NOT EXISTS $ENV{CCP4}
)
endif
()
endif
()
...
@@ -82,7 +87,7 @@ if(MSVC)
...
@@ -82,7 +87,7 @@ if(MSVC)
# On Windows, do not install in the system location
# On Windows, do not install in the system location
if
(
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND NOT BUILD_FOR_CCP4
)
if
(
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND NOT BUILD_FOR_CCP4
)
message
(
WARNING
"The library and auxiliary files will be installed in $ENV{LOCALAPPDATA}/
${
PROJECT_NAME
}
"
)
message
(
STATUS
"The library and auxiliary files will be installed in $ENV{LOCALAPPDATA}/
${
PROJECT_NAME
}
"
)
set
(
CMAKE_INSTALL_PREFIX
"$ENV{LOCALAPPDATA}/
${
PROJECT_NAME
}
"
CACHE PATH
"..."
FORCE
)
set
(
CMAKE_INSTALL_PREFIX
"$ENV{LOCALAPPDATA}/
${
PROJECT_NAME
}
"
CACHE PATH
"..."
FORCE
)
endif
()
endif
()
...
@@ -120,7 +125,8 @@ set(THREADS_PREFER_PTHREAD_FLAG)
...
@@ -120,7 +125,8 @@ set(THREADS_PREFER_PTHREAD_FLAG)
find_package
(
Threads
)
find_package
(
Threads
)
set
(
Boost_DETAILED_FAILURE_MSG ON
)
set
(
Boost_DETAILED_FAILURE_MSG ON
)
set
(
Boost_DEBUG ON
)
# set (Boost_DEBUG ON)
# set (Boost_VERBOSE ON)
find_package
(
Boost 1.70.0 REQUIRED COMPONENTS system iostreams regex date_time program_options
)
find_package
(
Boost 1.70.0 REQUIRED COMPONENTS system iostreams regex date_time program_options
)
# find_package(ZLIB)
# find_package(ZLIB)
...
...
Write
Preview
Markdown
is supported
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