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
96725ae8
Unverified
Commit
96725ae8
authored
Aug 19, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up makefile
parent
b3a0ded9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
32 deletions
+3
-32
CMakeLists.txt
+3
-32
No files found.
CMakeLists.txt
View file @
96725ae8
...
...
@@ -66,7 +66,6 @@ if(BUILD_FOR_CCP4)
list
(
APPEND CMAKE_PREFIX_PATH
"$ENV{CCP4}"
)
set
(
CMAKE_INSTALL_PREFIX
"$ENV{CCP4}"
)
# This is the only option:
if
(
WIN32
)
set
(
BUILD_SHARED_LIBS ON
)
endif
()
...
...
@@ -91,44 +90,16 @@ if(MSVC)
add_definitions
(
-D_WIN32_WINNT=
${
ver
}
)
endif
()
# Optionally use mrc to create resources
if
(
WIN32 AND BUILD_SHARED_LIBS
)
message
(
"Not using resources when building shared libraries for Windows"
)
else
()
find_package
(
Mrc
)
if
(
MRC_FOUND
)
option
(
CIFPP_USE_RSRC
"Use mrc to create resources"
ON
)
else
()
message
(
WARNING
"Not using resources since mrc was not found"
)
endif
()
if
(
CIFPP_USE_RSRC STREQUAL
"ON"
)
set
(
CIFPP_USE_RSRC 1
)
message
(
"Using resources compiled with
${
MRC
}
"
)
add_compile_definitions
(
CIFPP_USE_RSRC
)
endif
()
endif
()
# Libraries
# Start by finding out if std:regex is usable. Note that the current
# implementation in GCC is not acceptable, it crashes on long lines.
check_cxx_source_compiles
(
"
#include <iostream>
int a =
#ifdef __GLIBCXX__
1;
#else
clearlynotanumber;
#ifndef __GLIBCXX__
#error
#endif
int main(int argc, char *argv[])
{
return 0;
}"
GXX_LIBSTDCPP
)
int main(int argc, char *argv[]) { return 0; }"
GXX_LIBSTDCPP
)
if
(
GXX_LIBSTDCPP
)
message
(
STATUS
"Testing for known regex bug, since you're using GNU libstdc++"
)
...
...
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