Skip to content
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

Cmake simplification and various other minor changes #1204

Merged
merged 102 commits into from Sep 3, 2014

Conversation

sithhell
Copy link
Member

This pull request represents a rework of our build system. In order to support more platforms and fix issues related to the build system (#1201, #1160, #1138, #1072, #970, #934, #847, #720, #503, #459, #345 and #209) this step was necessary. Unfortunately, it included some breaking changes.

Features:

In addition some minor fixes to the source code has been done to fix minor issues.

hkaiser and others added 30 commits March 13, 2014 13:56
…_934

Conflicts:
	cmake/HPX_StaticComponentList.cmake
	cmake/templates/static_component_data.hpp.in
	src/components/static_components.list
	tools/create_static_module_data.cpp
Conflicts:
	CMakeLists.txt
	cmake/HPX_Compile.cmake
…PX_STATIC_LINKING is defined

Conflicts:
	hpx/runtime/components/server/runtime_support.hpp
Conflicts:
	CMakeLists.txt
	cmake/HPX_Compile.cmake
	cmake/HPX_StaticComponentList.cmake
	cmake/templates/static_component_data.hpp.in
	src/components/static_components.list
	tools/create_static_module_data.cpp
Conflicts:
	cmake/HPX_StaticComponentList.cmake
	cmake/templates/static_component_data.hpp.in
…_934

Conflicts:
	CMakeLists.txt
	cmake/HPX_Compile.cmake
	hpx/runtime/components/server/runtime_support.hpp
Conflicts:
	cmake/FindHPX_OpenMP.cmake
	cmake/HPX_AddConfigTest.cmake
	src/util/ini.cpp
Conflicts:
	CMakeLists.txt
	hpx/components/security/server/certificate_authority_base.hpp
	hpx/components/security/server/root_certificate_authority.hpp
	hpx/components/security/server/subordinate_certificate_authority.hpp
	hpx/runtime/parcelset/decode_parcels.hpp
	hpx/runtime/parcelset/encode_parcels.hpp
	hpx/runtime/threads/policies/local_queue_scheduler.hpp
@hkaiser
Copy link
Member

hkaiser commented Aug 15, 2014

I'm now seeing:

4>d:\devel\hpx\src\util\runtime_configuration.cpp(197): error C2146: syntax error : missing ';' before identifier 'hpx'
4>d:\devel\hpx\src\util\runtime_configuration.cpp(197): error C2882: 'hpx' : illegal use of namespace identifier in expression
4>d:\devel\hpx\src\util\runtime_configuration.cpp(202): error C2146: syntax error : missing ';' before identifier 'hpx'
4>d:\devel\hpx\src\util\runtime_configuration.cpp(202): error C2882: 'hpx' : illegal use of namespace identifier in expression
4>d:\devel\hpx\src\util\runtime_configuration.cpp(207): error C2146: syntax error : missing ';' before identifier 'hpx'
4>d:\devel\hpx\src\util\runtime_configuration.cpp(207): error C2882: 'hpx' : illegal use of namespace identifier in expression
4>d:\devel\hpx\src\util\runtime_configuration.cpp(212): error C2146: syntax error : missing ';' before identifier 'hpx'
4>d:\devel\hpx\src\util\runtime_configuration.cpp(212): error C2882: 'hpx' : illegal use of namespace identifier in expression

while compiling the core HPX library. I believe this is caused by the pp constant HPX_COMPONENT_NAME=hpx passed on the compiler command line. Should that be HPX_COMPONENT_NAME="hpx" instead? Hmm, but then the default (https://github.com/STEllAR-GROUP/hpx/blob/cmake_simplification/hpx/config.hpp#L428) would be wrong as well... IOW, I'm not sure what's broken.

@hkaiser
Copy link
Member

hkaiser commented Aug 15, 2014

I just checked - the current cmake system (master branch) puts an additional HPX_DLL_STRING="hpxd.dll" (for the debug build, it should go without the 'd' for all other configurations) onto the compiler command line which is why it works with what we have right now. Not sure why this was removed.

@sithhell
Copy link
Member Author

I removed HPX_DLL_STRING completely as it is only used in src/util/runtime_configuration.cpp. So it is not needed to be defined on the command line or in hpx/config.hpp.

@hkaiser
Copy link
Member

hkaiser commented Aug 25, 2014

Sure, it just didn't work with out it. I think @biddisco has committed a fix, though.

@sithhell
Copy link
Member Author

True. That fixed it. I further streamlined the use of that macro.

@sithhell
Copy link
Member Author

sithhell commented Sep 3, 2014

The branch seems to have stabelized. Merging.

@sithhell sithhell closed this Sep 3, 2014
@sithhell sithhell reopened this Sep 3, 2014
sithhell added a commit that referenced this pull request Sep 3, 2014
Cmake simplification and various other minor changes
@sithhell sithhell merged commit ecdb034 into master Sep 3, 2014
@sithhell sithhell deleted the cmake_simplification branch September 3, 2014 09:10
@Titzi90 Titzi90 mentioned this pull request Sep 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants